13 uses: actions/checkout@v3
16 uses: actions/setup-node@v3
23 corepack prepare pnpm@latest --activate
26 - name: Tests & Coverage
34 - name: Production Build
35 run: pnpm run build:prod
39 runs-on: ubuntu-latest
43 uses: actions/checkout@v3
46 uses: actions/setup-node@v3
49 registry-url: https://registry.npmjs.org/
51 - name: Read package.json version
53 uses: jaywcjlove/github-action-package@main
58 - name: Publish Release
59 if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
62 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
64 - name: Publish Pre-Release
65 if: ${{ contains(steps.package-version.outputs.version, '-') == true }}
66 run: pnpm publish --tag next
68 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
70 # - name: Publish Beta Release
71 # if: ${{ contains(steps.package-version.outputs.version, 'beta') == true }}
72 # run: pnpm publish --tag beta
74 # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}