Skip to content

Commit b535b9b

Browse files
fix release.yml file
1 parent 4131a91 commit b535b9b

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,7 @@ jobs:
4949
with:
5050
path: docs/
5151

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-
5952
- name: Publish package
60-
if: env.IS_NEW_VERSION == 'true'
6153
run: npm publish
6254
env:
6355
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)