13 uses: actions/checkout@v3
16 uses: pnpm/action-setup@v2
21 uses: actions/setup-node@v3
29 - name: Tests & Coverage
37 - name: Production Build
42 runs-on: ubuntu-latest
46 uses: actions/checkout@v3
49 uses: pnpm/action-setup@v2
54 uses: actions/setup-node@v3
57 registry-url: https://registry.npmjs.org/
60 - name: Read package.json version
62 uses: jaywcjlove/github-action-package@main
67 - name: Publish Release
68 if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
69 run: pnpm publish --no-git-checks
71 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
73 - name: Publish Pre-Release
74 if: ${{ contains(steps.package-version.outputs.version, '-') == true }}
75 run: pnpm publish --no-git-checks --tag next
77 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
79 - name: Publish Beta Release
80 if: ${{ contains(steps.package-version.outputs.version, '-beta') == true }}
81 run: pnpm publish --no-git-checks --tag beta
83 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}