Skip to content

Commit

Permalink
chore: use pnpm and changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
hxg2050 committed Mar 12, 2024
1 parent 77bcc10 commit 5fbf6e5
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,22 @@ on:

jobs:
publish-npm:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm install pnpm -g
- run: pnpm install
- uses: changesets/action@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
version: pnpm run version
publish: pnpm run publish
commit: '[ci] release'
title: '[ci] release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm install pnpm -g
- run: pnpm install
- uses: changesets/action@v1
with:
version: pnpm run version
publish: pnpm run publish
commit: '[ci] release'
title: '[ci] release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 5fbf6e5

Please sign in to comment.