Skip to content

Commit cc1381d

Browse files
authored
Merge pull request #162 from citation-file-format/105-update-workflows
Update workflows
2 parents a96d064 + 46f6bcf commit cc1381d

4 files changed

Lines changed: 13 additions & 32 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,16 @@ on: # rebuild any PRs and main branch changes
77
- main
88

99
jobs:
10-
1110
build:
12-
1311
runs-on: ubuntu-latest
14-
15-
strategy:
16-
matrix:
17-
node-version: [12.x, 14.x, 16.x]
18-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19-
2012
steps:
2113
- uses: actions/checkout@v2
22-
- name: Use Node.js ${{ matrix.node-version }}
14+
with:
15+
ref: ${{ github.head_ref }}
16+
- name: Use Node.js 14
2317
uses: actions/setup-node@v2
2418
with:
25-
node-version: ${{ matrix.node-version }}
19+
node-version: '14'
2620
cache: 'npm'
2721
- name: Run npm clean-install
2822
run: npm clean-install

.github/workflows/lint.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,16 @@ on: # rebuild any PRs and main branch changes
88
- 'releases/*'
99

1010
jobs:
11-
1211
lint:
13-
1412
runs-on: ubuntu-latest
15-
16-
strategy:
17-
matrix:
18-
node-version: [12.x, 14.x, 16.x]
19-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20-
2113
steps:
2214
- uses: actions/checkout@v2
23-
- name: Use Node.js ${{ matrix.node-version }}
15+
with:
16+
ref: ${{ github.head_ref }}
17+
- name: Use Node.js 14
2418
uses: actions/setup-node@v2
2519
with:
26-
node-version: ${{ matrix.node-version }}
20+
node-version: '14'
2721
cache: 'npm'
2822
- name: Run npm clean-install
2923
run: npm clean-install

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ on: # publish when main branch changes
88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
11-
1211
steps:
1312
- uses: actions/checkout@v2
1413
with:
1514
ref: ${{ github.head_ref }}
16-
- name: Use Node.js ${{ matrix.node-version }}
15+
- name: Use Node.js 14
1716
uses: actions/setup-node@v2
1817
with:
1918
node-version: '14'

.github/workflows/test.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,16 @@ on: # rebuild any PRs and main branch changes
88
- 'releases/*'
99

1010
jobs:
11-
1211
test:
13-
1412
runs-on: ubuntu-latest
15-
16-
strategy:
17-
matrix:
18-
node-version: [12.x, 14.x, 16.x]
19-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20-
2113
steps:
2214
- uses: actions/checkout@v2
23-
- name: Use Node.js ${{ matrix.node-version }}
15+
with:
16+
ref: ${{ github.head_ref }}
17+
- name: Use Node.js 14
2418
uses: actions/setup-node@v2
2519
with:
26-
node-version: ${{ matrix.node-version }}
20+
node-version: '14'
2721
cache: 'npm'
2822
- name: Run npm clean-install
2923
run: npm clean-install

0 commit comments

Comments
 (0)