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 747ed66 commit 6020404Copy full SHA for 6020404
1 file changed
.github/workflows/npm-build-publish.yml
@@ -43,16 +43,13 @@ jobs:
43
id: package_version
44
run: echo "::set-output name=VERSION::$(node -p "require('./package.json').version")"
45
46
- - name: Check npm view
47
- run: |
48
- VERSION=${{ steps.package_version.outputs.VERSION }}
49
- echo "Checking version $VERSION"
50
- npm view epsillajs@$VERSION
51
-
52
- name: Check if version already published
53
run: |
54
VERSION=${{ steps.package_version.outputs.VERSION }}
55
- if npm view epsillajs@$VERSION; then
+ echo "Checking version: $VERSION"
+ NPM_VIEW_OUTPUT=$(npm view epsillajs@$VERSION)
+ echo "npm view output: $NPM_VIEW_OUTPUT"
+ if [ -n "$NPM_VIEW_OUTPUT" ]; then
56
echo "Version $VERSION already exists on npm. Please update the version."
57
exit 1
58
fi
0 commit comments