mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 01:42:29 +02:00
yarn tag add (#1673)
Add LATEST tag for the published package if this is not a prerelease version
This commit is contained in:
parent
9d8998e9e7
commit
92b023d566
8
.github/workflows/publish-package-to-npm.yml
vendored
8
.github/workflows/publish-package-to-npm.yml
vendored
|
@ -15,6 +15,10 @@ jobs:
|
|||
# Pull submodules
|
||||
submodules: 'recursive'
|
||||
|
||||
- name: Get package info
|
||||
id: package
|
||||
uses: codex-team/action-nodejs-package-info@v1
|
||||
|
||||
# Setup node environment
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
|
@ -33,9 +37,9 @@ jobs:
|
|||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
- name: Publish the package with a LATEST tag if this is not a prerelease version
|
||||
- name: Add LATEST tag for the published package if this is not a prerelease version
|
||||
if: github.event.release.prerelease != true
|
||||
run: yarn publish --access=public --tag=latest
|
||||
run: yarn tag add ${{ steps.package.outputs.name }}@${{ steps.package.outputs.version }} latest
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue