Skip to content

Commit

Permalink
Add context to publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
FabijanC committed Sep 29, 2021
1 parent eebdd75 commit 3fc9b2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ workflows:
- test_node_v12
- test_node_v14
- npm_publish:
context: shardlabs
filters:
branches:
only:
Expand Down
2 changes: 1 addition & 1 deletion scripts/npm-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ CORE_NPM_VERSION=$(npm view @shardlabs/starknet-hardhat-plugin dist-tags.latest)
if [ $CORE_LOCAL_VERSION = $CORE_NPM_VERSION ]; then
echo "Latest npm version is equal to current package version. Up the version to publish to npm."
else
npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN}
npm install
npm run build
npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN}
npm publish --verbose --access=public
fi

0 comments on commit 3fc9b2d

Please sign in to comment.