release.yml (556B)
1 name: Release 2 on: 3 push: 4 branches: 5 - master 6 jobs: 7 release: 8 name: Release 9 runs-on: ubuntu-latest 10 steps: 11 - name: Checkout 12 uses: actions/checkout@v3 13 with: 14 fetch-depth: 0 15 - name: Setup Node.js 16 uses: actions/setup-node@v3 17 with: 18 node-version: "lts/*" 19 - name: Install dependencies 20 run: npm ci 21 - name: Release 22 env: 23 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 24 NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 25 run: npx semantic-release