Skip to content

Commit d8ce21c

Browse files
authored
chore: fix publish npm package workflow (#495)
1 parent c20d3de commit d8ce21c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/publish.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
on:
22
release:
33
types: [created]
4+
workflow_dispatch:
45
name: publish
56
jobs:
67
publish-to-npm:
@@ -9,12 +10,15 @@ jobs:
910
- uses: actions/checkout@v3
1011
- uses: actions/setup-node@v3
1112
with:
12-
node-version: 14
13+
node-version: '16.x'
14+
- run: npm install
15+
- run: npm run build
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: '16.x'
1319
registry-url: 'https://wombat-dressing-room.appspot.com'
1420
- id: publish
1521
env:
1622
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
17-
run: |
18-
npm install
19-
npm run build
23+
run:
2024
npm publish

0 commit comments

Comments
 (0)