Skip to content

Commit

Permalink
fix(plugins/npm): look local package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed Mar 1, 2024
1 parent 47f87c4 commit 4c488a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ release() {
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >>"$TEMP_FILE"

# Bump `package.json` `version` for properly publishing
sed -i '' "s/\"version\": \"[^\"]*\",/\"version\": \"$NEXT_BUILD_VERSION\",/" "$EXEC_DIR/package.json"
sed -i '' "s/\"version\": \"[^\"]*\",/\"version\": \"$NEXT_BUILD_VERSION\",/" "package.json"

export NODE_AUTH_TOKEN="$NPM_TOKEN"
npm publish "$NEXT_RELEASE_VERSION" --userconfig "$TEMP_FILE"
Expand Down

0 comments on commit 4c488a9

Please sign in to comment.