Publish SDK #1
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: "Publish SDK" | |
on: | |
workflow_run: | |
workflows: ["testing"] | |
branches: [main] | |
types: | |
- completed | |
jobs: | |
build: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: generate zkauth-sdk | |
shell: bash | |
run: | | |
npm install && npm run build | |
- name: publish zkauth-sdk | |
shell: bash | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
npx pnpm --filter "@klaytn/*" -r publish --publish-branch main --no-git-check --access=public | |