13 uses: actions/checkout@v3
16 uses: actions/setup-node@v3
23 - name: Tests & Coverage
31 - name: Production Build
32 run: npm run build:prod
36 runs-on: ubuntu-latest
40 uses: actions/checkout@v3
43 uses: actions/setup-node@v3
46 registry-url: https://registry.npmjs.org/
48 - name: Read package.json version
50 uses: jaywcjlove/github-action-package@main
55 - name: Publish Release
56 if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
59 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62 if: ${{ contains(steps.package-version.outputs.version, 'beta') }}
63 run: npm publish --tag beta
65 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}