We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4131a91 commit b535b9bCopy full SHA for b535b9b
1 file changed
.github/workflows/release.yml
@@ -49,15 +49,7 @@ jobs:
49
with:
50
path: docs/
51
52
- - name: Check if new version
53
- run: |
54
- PACKAGE_VERSION="$(node -p -e "require('./package.json').version")"
55
- PACKAGE_NAME="$(node -p -e "require('./package.json').name")"
56
- FOUND_VERSION=$(npm view $PACKAGE_NAME versions | grep \'$PACKAGE_VERSION\')
57
- if ! [[ $FOUND_VERSION ]]; then echo "IS_NEW_VERSION=true" >> $GITHUB_ENV; fi
58
-
59
- name: Publish package
60
- if: env.IS_NEW_VERSION == 'true'
61
run: npm publish
62
env:
63
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments