Skip to content

Commit 939a266

Browse files
chore(ci): Update workflow (#102)
1 parent 3238d8a commit 939a266

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/nodejs.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v2
22+
2223
- name: Use Node.js ${{ matrix.node-version }}
2324
uses: actions/setup-node@v1
2425
with:
2526
node-version: ${{ matrix.node-version }}
26-
- run: yarn
27-
- run: npm run test --if-present
28-
- run: npx semantic-release
27+
28+
- name: Install dependencies
29+
run: yarn
30+
31+
- name: Run tests
32+
run: yarn test
33+
34+
- name: Release and publish package
35+
run: npx semantic-release
2936
env:
3037
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3138
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)