Skip to content

Commit 41c7cf5

Browse files
committed
chore: fix publish ci
1 parent 4379b42 commit 41c7cf5

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

.github/workflows/publish.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
name: Publish
22
on:
3-
workflow_run:
4-
workflows: ["CI"]
5-
types:
6-
- completed
7-
push:
8-
branches:
9-
- "main"
3+
workflow_run:
4+
workflows: ['CI']
5+
types:
6+
- completed
7+
push:
8+
branches:
9+
- 'main'
1010

1111
concurrency: ${{ github.workflow }}-${{ github.ref }}
1212

1313
jobs:
14-
publish:
15-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v3
19-
- uses: pnpm/action-setup@v2
20-
with:
21-
version: 7
22-
- uses: actions/setup-node@v3
23-
with:
24-
node-version: 16.x
25-
cache: "pnpm"
14+
publish:
15+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: pnpm/action-setup@v2
20+
with:
21+
version: 8
22+
- uses: actions/setup-node@v3
23+
with:
24+
node-version: 20.x
25+
cache: 'pnpm'
2626

27-
- run: pnpm install --frozen-lockfile
28-
- name: Create Release Pull Request or Publish
29-
id: changesets
30-
uses: changesets/action@v1
31-
with:
32-
publish: pnpm run release
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
- run: pnpm install --frozen-lockfile
28+
- name: Create Release Pull Request or Publish
29+
id: changesets
30+
uses: changesets/action@v1
31+
with:
32+
publish: pnpm run release
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)