mirror of
https://github.com/codex-team/editor.js
synced 2026-03-14 22:55:47 +01:00
parent
6ac58c3935
commit
ef0c7d76a7
1 changed files with 8 additions and 2 deletions
10
.github/workflows/publish-package-to-npm.yml
vendored
10
.github/workflows/publish-package-to-npm.yml
vendored
|
|
@ -28,8 +28,14 @@ jobs:
|
|||
- name: Build output files
|
||||
run: yarn build
|
||||
|
||||
- name: Publish the package
|
||||
run: yarn publish --access=public ${{ github.event.release.prerelease && '--tag=next' || '--tag=latest' }}
|
||||
- name: Publish the package with a NEXT tag
|
||||
run: yarn publish --access=public --tag=next
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
- name: Publish the package with a LATEST tag if this is not a prerelease version
|
||||
if: !github.event.release.prerelease
|
||||
run: yarn publish --access=public --tag=latest
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue