Skip to content

Commit

Permalink
chore: add npm publishing to action
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Jul 16, 2024
1 parent 2cb9918 commit 3ca04c3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/publish-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@ jobs:
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
ignore-unpublished-changes: true
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: |
cd src/ic_oss_ts
npm install
npm test
npm build
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 3ca04c3

Please sign in to comment.