Skip to content

Commit a057d83

Browse files
committed
ci: updated to modern conventions
1 parent a4455fb commit a057d83

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

.github/workflows/node-ci.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Node.js CI
55
- master
66
- alpha
77
- beta
8-
- dependabot/**
8+
- 'dependabot/**'
99
pull_request:
1010
types:
1111
- opened
@@ -17,38 +17,36 @@ jobs:
1717
verify:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v2
21-
- name: Read .nvmrc
22-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
23-
id: nvm
20+
- uses: actions/checkout@v3
2421
- name: Setup node
25-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@v3
2623
with:
27-
node-version: ${{ steps.nvm.outputs.NVMRC }}
28-
- uses: bahmutov/npm-install@v1
24+
node-version-file: '.nvmrc'
25+
cache: npm
26+
- run: npm clean-install
2927
- run: npm test
28+
- name: Upload coverage data to Codecov
29+
run: 'npm run coverage:report'
3030
release:
3131
needs: verify
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v2
35-
- name: Read .nvmrc
36-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
37-
id: nvm
34+
- uses: actions/checkout@v3
3835
- name: Setup node
39-
uses: actions/setup-node@v1
36+
uses: actions/setup-node@v3
4037
with:
41-
node-version: ${{ steps.nvm.outputs.NVMRC }}
42-
- uses: bahmutov/npm-install@v1
38+
node-version-file: '.nvmrc'
39+
cache: npm
40+
- run: npm clean-install
4341
- name: semantic-release
4442
run: npx semantic-release
4543
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
44+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
45+
NPM_TOKEN: '${{ secrets.NPM_PUBLISH_TOKEN }}'
4846
automerge:
4947
needs: release
5048
runs-on: ubuntu-latest
5149
steps:
52-
- uses: fastify/github-action-merge-dependabot@v2.2.0
50+
- uses: fastify/github-action-merge-dependabot@v3
5351
with:
54-
github-token: ${{ secrets.GITHUB_TOKEN }}
52+
github-token: ${{ secrets.GH_PAT }}

0 commit comments

Comments
 (0)