Skip to content

Commit 32fb8bc

Browse files
committed
ci: simplify publish npm workflow
1 parent 0be078e commit 32fb8bc

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,6 @@ on:
88
types: [created]
99

1010
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
16-
with:
17-
node-version: 20
18-
- run: npm ci
19-
- run: npm run build
20-
#- run: npm test
21-
2211
publish-npm:
2312
needs: build
2413
runs-on: ubuntu-latest
@@ -29,6 +18,8 @@ jobs:
2918
node-version: 20
3019
registry-url: https://registry.npmjs.org/
3120
- run: npm ci
21+
- run: npm run build
22+
- run: ls -R dist
3223
- run: npm publish
3324
env:
3425
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)