diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4e1877f..86d09d0 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -37,6 +37,7 @@ jobs: package: "./packages/esbuild-register/package.json" access: public strategy: upgrade + tag: ${{ github.event.release.prerelease && 'next' || 'latest' }} - name: publish to npm (core) uses: JS-DevTools/npm-publish@v3 with: @@ -44,6 +45,7 @@ jobs: package: "./packages/core/package.json" access: public strategy: upgrade + tag: ${{ github.event.release.prerelease && 'next' || 'latest' }} - name: publish to npm (loader-core) uses: JS-DevTools/npm-publish@v3 with: @@ -51,6 +53,7 @@ jobs: package: "./packages/loader-core/package.json" access: public strategy: upgrade + tag: ${{ github.event.release.prerelease && 'next' || 'latest' }} - name: publish to npm (wasi-preview1) uses: JS-DevTools/npm-publish@v3 with: @@ -58,6 +61,7 @@ jobs: package: "./packages/wasi-preview1/package.json" access: public strategy: upgrade + tag: ${{ github.event.release.prerelease && 'next' || 'latest' }} - name: publish to npm (cli) uses: JS-DevTools/npm-publish@v3 with: @@ -65,6 +69,7 @@ jobs: package: "./packages/cli/package.json" access: public strategy: upgrade + tag: ${{ github.event.release.prerelease && 'next' || 'latest' }} - name: publish to npm (graphql-loader) uses: JS-DevTools/npm-publish@v3 with: @@ -72,6 +77,7 @@ jobs: package: "./packages/graphql-loader/package.json" access: public strategy: upgrade + tag: ${{ github.event.release.prerelease && 'next' || 'latest' }} - name: publish to npm (rollup-plugin) uses: JS-DevTools/npm-publish@v3 with: @@ -79,6 +85,7 @@ jobs: package: "./packages/rollup-plugin/package.json" access: public strategy: upgrade + tag: ${{ github.event.release.prerelease && 'next' || 'latest' }} - name: publish to npm (jest-transform) uses: JS-DevTools/npm-publish@v3 with: @@ -86,6 +93,7 @@ jobs: package: "./packages/jest-transform/package.json" access: public strategy: upgrade + tag: ${{ github.event.release.prerelease && 'next' || 'latest' }} deploy-vercel: runs-on: ubuntu-latest steps: