Fix workflow code (#1672)

`The workflow is not valid. .github/workflows/publish-package-to-npm.yml: Unexpected tag '!github.event.release.prerelease'`
This commit is contained in:
Taly 2021-04-28 12:43:16 +03:00 committed by GitHub
parent 231d122949
commit 9d8998e9e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ jobs:
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
if: github.event.release.prerelease != true
run: yarn publish --access=public --tag=latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}