Skip to content

Commit

Permalink
ci: Automate publishing near-cli-rs to npmjs for npx near-cli-rs to…
Browse files Browse the repository at this point in the history
… use the latest released binary release by default (#273)
  • Loading branch information
frol authored Dec 5, 2023
1 parent 07a1788 commit 9ce46ec
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish to npmjs.com

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Configure credentials
run: |
npm set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_REGISTRY_TOKEN }}
- name: Publish to npmjs.com
run: |
npm publish https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-npm-package.tar.gz

0 comments on commit 9ce46ec

Please sign in to comment.