Skip to content

Commit

Permalink
Merge pull request #158 from AnsGoo/chenghaiwen
Browse files Browse the repository at this point in the history
fix: 增加了自动发布流水线
  • Loading branch information
AnsGoo authored Dec 2, 2024
2 parents d0e520f + 5acb6f5 commit 3645487
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: npm install pnpm -g
- run: pnpm install

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
- run: pnpm run build:lib
- run: npm publish
- run: pnpm run publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 3645487

Please sign in to comment.