diff --git a/.github/workflows/npm-release.yaml b/.github/workflows/npm-release.yaml index f5f0d93..3e0377f 100644 --- a/.github/workflows/npm-release.yaml +++ b/.github/workflows/npm-release.yaml @@ -24,7 +24,14 @@ jobs: - name: Yarn Run Build run: yarn run build + - name: Npm Publish Pre-Release! + if: github.event.release.prerelease + run: npm publish --tag next + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Npm Publish! + if: ${{ !github.event.release.prerelease }} run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}