Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Commit b7157a0

Browse files
committed
chore: tweak ci publish workflow
1 parent 98c396f commit b7157a0

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/publish.yml

+6-11
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,19 @@ on:
66
- "v*"
77

88
jobs:
9-
build:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
14-
with:
15-
node-version: current
16-
- run: pnpm i --frozen-lockfile
17-
189
publish-npm:
19-
needs: build
2010
runs-on: ubuntu-latest
2111
steps:
2212
- uses: actions/checkout@v3
2313
- uses: actions/setup-node@v3
2414
with:
2515
node-version: current
2616
registry-url: https://registry.npmjs.org/
27-
- run: pnpm publish
17+
- uses: pnpm/action-setup@v3
18+
with:
19+
version: 8
20+
- run: pnpm i --frozen-lockfile
21+
- run: pnpm build
22+
- run: npm publish
2823
env:
2924
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)