Skip to content

Commit 3466a9b

Browse files
committed
update github action
1 parent 7523b75 commit 3466a9b

1 file changed

Lines changed: 9 additions & 16 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,22 @@ on:
44
types: [published]
55

66
jobs:
7-
build:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-node@v3
12-
with:
13-
node-version: 18
14-
registry-url: "https://registry.npmjs.org"
15-
16-
- run: corepack enable
17-
- run: pnpm install
18-
- run: pnpm build
19-
207
publish-npm:
218
runs-on: ubuntu-latest
22-
needs: build
239
steps:
2410
- uses: actions/checkout@v3
2511
- uses: actions/setup-node@v3
2612
with:
2713
node-version: 18
2814
registry-url: "https://registry.npmjs.org"
29-
- run: npm version ${{github.ref_name}} --no-git-tag-version
30-
- run: npm publish
15+
- name: build
16+
run: |
17+
corepack enable
18+
pnpm install
19+
pnpm build
20+
- name: publish
21+
run: |
22+
npm version ${{github.ref_name}} --no-git-tag-version
23+
npm publish
3124
env:
3225
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)