Skip to content

Commit

Permalink
ci: use next tag when publishing a prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
uhyo committed Jan 13, 2025
1 parent d344cdf commit d1bd056
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,55 +37,63 @@ 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:
token: ${{ secrets.NPM_TOKEN }}
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:
token: ${{ secrets.NPM_TOKEN }}
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:
token: ${{ secrets.NPM_TOKEN }}
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:
token: ${{ secrets.NPM_TOKEN }}
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:
token: ${{ secrets.NPM_TOKEN }}
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:
token: ${{ secrets.NPM_TOKEN }}
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:
token: ${{ secrets.NPM_TOKEN }}
package: "./packages/jest-transform/package.json"
access: public
strategy: upgrade
tag: ${{ github.event.release.prerelease && 'next' || 'latest' }}
deploy-vercel:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit d1bd056

Please sign in to comment.