Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 3949ec2

Browse files
authored
Update npm-publish.yml
1 parent fd2b654 commit 3949ec2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ name: Publish
22

33
on:
44
release:
5-
types: [published]
5+
types: [created, edited, published]
66

77
jobs:
8-
build:
8+
test:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v1
12+
- uses: actions/setup-node@v2
1313
with:
14-
node-version: 12
14+
node-version: 14
1515
- run: npm ci
1616
- run: npm test
1717

18-
publish-npm:
19-
needs: build
18+
publish:
19+
needs: test
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v2
23-
- uses: actions/setup-node@v1
23+
- uses: actions/setup-node@v2
2424
with:
25-
node-version: 12
25+
node-version: 14
2626
registry-url: https://registry.npmjs.org/
2727
- run: npm ci
2828
- run: npm publish

0 commit comments

Comments
 (0)