Skip to content

Commit 102b0d3

Browse files
build: update workflow files to use lts version (#952)
1 parent a2da458 commit 102b0d3

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.github/workflows/continuous-deployment-workflow.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ jobs:
77
name: Publish to NPM
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v1
11-
- uses: actions/setup-node@v1
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
1212
with:
13+
node-version: 'lts/*'
1314
registry-url: https://registry.npmjs.org
1415
- run: npm ci --ignore-scripts
1516
- run: npm run prettier:check
@@ -23,4 +24,4 @@ jobs:
2324
- run: jq 'del(.devDependencies) | del(.scripts)' package.json > build/package.json
2425
- run: npm publish ./build
2526
env:
26-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

.github/workflows/continuous-integration-workflow.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ jobs:
55
name: Linters
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v1
9-
- uses: actions/setup-node@v1
8+
- uses: actions/checkout@v3
9+
- uses: actions/setup-node@v3
10+
with:
11+
node-version: 'lts/*'
1012
- run: npm ci --ignore-scripts
1113
- run: npm run prettier:check
1214
- run: npm run lint:check
@@ -15,27 +17,29 @@ jobs:
1517
runs-on: ubuntu-latest
1618
strategy:
1719
matrix:
18-
node-version: ['10.x', '12.x', '14.x']
20+
node-version: ['lts/*', 'current']
1921
fail-fast: false
2022
steps:
21-
- uses: actions/checkout@v1
23+
- uses: actions/checkout@v3
2224
- name: Setting up Node.js (v${{ matrix.node-version }}.x)
23-
uses: actions/setup-node@v1
25+
uses: actions/setup-node@v3
2426
with:
2527
node-version: ${{ matrix.node-version }}
2628
- run: npm ci --ignore-scripts
2729
- run: npm run test:ci
2830
- run: npm install codecov -g
29-
if: ${{ matrix.node-version == '14.x' }}
31+
if: ${{ matrix.node-version == 'current' }}
3032
- run: codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }} --commit=$GITHUB_SHA --branch=${GITHUB_REF##*/}
31-
if: ${{ matrix.node-version == '14.x' }}
33+
if: ${{ matrix.node-version == 'current' }}
3234
build:
3335
name: Build
3436
runs-on: ubuntu-latest
3537
steps:
36-
- uses: actions/checkout@v1
37-
- uses: actions/setup-node@v1
38+
- uses: actions/checkout@v3
39+
- uses: actions/setup-node@v3
40+
with:
41+
node-version: 'lts/*'
3842
- run: npm ci --ignore-scripts
3943
- run: npm run build:es2015
4044
- run: npm run build:cjs
41-
- run: npm run build:types
45+
- run: npm run build:types

0 commit comments

Comments
 (0)