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 corepack prepare pnpm@latest --activate
61 - name: Publish Release
62 if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
63 run: pnpm publish --no-git-checks
65 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
67 - name: Publish Pre-Release
68 if: ${{ contains(steps.package-version.outputs.version, '-') == true }}
69 run: pnpm publish --no-git-checks --tag next
71 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
73 # - name: Publish Beta Release
74 # if: ${{ contains(steps.package-version.outputs.version, '-beta') == true }}
75 # run: pnpm publish --no-git-checks --tag beta
77 # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}