diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6240f246fd..6fde9bdf62 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -125,7 +125,7 @@ jobs: npm config set //registry.npmjs.org/:_authToken $NPM_AUTH_TOKEN # print the NPM user name for validation npm whoami - VERSION=$(npm -s run env echo '$npm_package_version') + VERSION=$(node -p "require('./package.json').version" ) # Only publish stable versions to the latest tag if [[ "$VERSION" =~ ^[^-]+$ ]]; then NPM_TAG="latest"