Skip to content

Commit dd16d42

Browse files
authored
fix(publish): add build step (#56)
1 parent 79c1e2b commit dd16d42

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,7 @@ on:
88
types: [created]
99

1010
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
16-
with:
17-
node-version: 18
18-
- run: yarn
19-
2011
publish-npm:
21-
needs: build
2212
runs-on: ubuntu-latest
2313
steps:
2414
- uses: actions/checkout@v3
@@ -27,6 +17,7 @@ jobs:
2717
node-version: 18
2818
registry-url: https://registry.npmjs.org/
2919
- run: yarn
20+
- run: yarn build
3021
- run: yarn publish
3122
env:
3223
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)