npm publish wallet sdk Soroban #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: npm publish wallet sdk Soroban | |
on: [workflow_dispatch] | |
jobs: | |
npm-publish: | |
name: npm-publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- run: yarn install | |
- run: yarn build | |
- run: yarn test:ci | |
- name: Publish to NPM | |
run: | | |
cd @stellar/typescript-wallet-sdk-soroban | |
yarn publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |