Skip to content

Commit

Permalink
feat(cli): add publish npm package action
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Asuka committed Oct 10, 2022
1 parent df6704a commit 6fe5366
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build_cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,19 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}

publish_npm:
if: github.event_name == 'release'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.14
registry-url: 'https://registry.npmjs.org'
- name: build
run: |
cd cli
yarn && yarn build && yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 6fe5366

Please sign in to comment.