Skip to content

Commit

Permalink
测试:sdk自动发布
Browse files Browse the repository at this point in the history
  • Loading branch information
modstart committed Dec 16, 2024
1 parent 64fd897 commit 50c1c6b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions sdk/.github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish to npm

on:
push:
tags:
- 'v*.*.*' # 仅当推送匹配 vX.X.X 的标签时触发

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Authenticate to npm
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish package
run: npm publish --access public

0 comments on commit 50c1c6b

Please sign in to comment.