Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hongfaqiu committed Sep 21, 2024
1 parent e9db070 commit 8a4d727
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '20'
Expand All @@ -29,8 +31,14 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: pnpm install
- run: pnpm lerna version --yes
- run: pnpm lerna publish from-git --yes
- name: Configure Git
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Bump version and publish
run: |
pnpm lerna version --conventional-commits --yes
pnpm lerna publish from-git --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 8a4d727

Please sign in to comment.