Skip to content

Commit 169c2f9

Browse files
authored
chore: update build steps
1 parent 758fd6a commit 169c2f9

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/npm-publish.yml

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

1010
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v2
16-
with:
17-
node-version: 14
18-
- run: npm ci
19-
- run: npm run build
20-
2111
publish-npm:
22-
needs: build
2312
runs-on: ubuntu-latest
2413
steps:
2514
- uses: actions/checkout@v2
@@ -28,12 +17,12 @@ jobs:
2817
node-version: 14
2918
registry-url: https://registry.npmjs.org/
3019
- run: npm ci
20+
- run: npm run build
3121
- run: npm publish
3222
env:
3323
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
3424

3525
publish-gpr:
36-
needs: build
3726
runs-on: ubuntu-latest
3827
permissions:
3928
contents: read
@@ -45,6 +34,7 @@ jobs:
4534
node-version: 14
4635
registry-url: https://npm.pkg.github.com/
4736
- run: npm ci
37+
- run: npm run build
4838
- run: npm publish
4939
env:
5040
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)