Publish the latest version with a next tag too (#1668)

resolves #1659
This commit is contained in:
Taly 2021-04-21 19:21:26 +03:00 committed by GitHub
commit ef0c7d76a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}