Skip to content

Commit

Permalink
chore: update ci for publishing artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
b00ste committed Sep 11, 2023
1 parent a9716ea commit b8d6bff
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/publish-npm-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,23 @@ jobs:
npx hardhat compile
npm run test
- name: Publish
- name: Prepare artifacts package
run: |
npm run build:js
npm run package
npm publish --access public
- name: Minify the JSON artifacts
run: |
curl -OL https://github.com/tidwall/jj/releases/download/v1.9.2/jj-1.9.2-linux-amd64.tar.gz;
tar xvzf jj-1.9.2-linux-amd64.tar.gz;
rm jj-1.9.2-linux-amd64.tar.gz;
for FILE in ./artifacts/*.json;
do
./jj-1.9.2-linux-amd64/jj -u < $FILE -o $FILE;
done
rm -r jj-1.9.2-linux-amd64
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_KEY }}

0 comments on commit b8d6bff

Please sign in to comment.