Skip to content

Commit 3a2fc92

Browse files
committed
Simplify GitHub Action workflows
Issue: actions/setup-node#32
1 parent d1e8660 commit 3a2fc92

10 files changed

Lines changed: 20 additions & 60 deletions

‎.github/workflows/build.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,10 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v2
1616

17-
- name: Read .nvmrc
18-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
19-
id: nvm
20-
2117
- name: Set up Node.js
22-
uses: actions/setup-node@v1
18+
uses: actions/setup-node@v2
2319
with:
24-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
20+
node-version-file: '.nvmrc'
2521

2622
- name: Install dependencies
2723
run: |

‎.github/workflows/disable-anniversary-pack.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@ jobs:
1616
ref: ${{ github.head_ref }}
1717
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
1818

19-
- name: Read .nvmrc
20-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
21-
id: nvm
22-
2319
- name: Set up Node.js
24-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@v2
2521
with:
26-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
22+
node-version-file: '.nvmrc'
2723

2824
- name: Install dependencies
2925
run: npm install

‎.github/workflows/disable-lightbearer-pack.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@ jobs:
1616
ref: ${{ github.head_ref }}
1717
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
1818

19-
- name: Read .nvmrc
20-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
21-
id: nvm
22-
2319
- name: Set up Node.js
24-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@v2
2521
with:
26-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
22+
node-version-file: '.nvmrc'
2723

2824
- name: Install dependencies
2925
run: npm install

‎.github/workflows/enable-anniversary-pack.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@ jobs:
1616
ref: ${{ github.head_ref }}
1717
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
1818

19-
- name: Read .nvmrc
20-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
21-
id: nvm
22-
2319
- name: Set up Node.js
24-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@v2
2521
with:
26-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
22+
node-version-file: '.nvmrc'
2723

2824
- name: Install dependencies
2925
run: npm install

‎.github/workflows/enable-lightbearer-pack.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@ jobs:
1616
ref: ${{ github.head_ref }}
1717
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
1818

19-
- name: Read .nvmrc
20-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
21-
id: nvm
22-
2319
- name: Set up Node.js
24-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@v2
2521
with:
26-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
22+
node-version-file: '.nvmrc'
2723

2824
- name: Install dependencies
2925
run: npm install

‎.github/workflows/enable-orcsoberfest-island-pack.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@ jobs:
2020
ref: ${{ github.head_ref }}
2121
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
2222

23-
- name: Read .nvmrc
24-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
25-
id: nvm
26-
2723
- name: Set up Node.js
28-
uses: actions/setup-node@v1
24+
uses: actions/setup-node@v2
2925
with:
30-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
26+
node-version-file: '.nvmrc'
3127

3228
- name: Install dependencies
3329
run: npm install

‎.github/workflows/enable-percht-island.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,10 @@ jobs:
1919
ref: ${{ github.head_ref }}
2020
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
2121

22-
- name: Read .nvmrc
23-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
24-
id: nvm
25-
2622
- name: Set up Node.js
27-
uses: actions/setup-node@v1
23+
uses: actions/setup-node@v2
2824
with:
29-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
25+
node-version-file: '.nvmrc'
3026

3127
- name: Install dependencies
3228
run: npm install

‎.github/workflows/import-markers-lee.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@ jobs:
1313
ref: ${{ github.head_ref }}
1414
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
1515

16-
- name: Read .nvmrc
17-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
18-
id: nvm
19-
2016
- name: Set up Node.js
21-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v2
2218
with:
23-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
19+
node-version-file: '.nvmrc'
2420

2521
- name: Install dependencies
2622
run: npm install

‎.github/workflows/import-markers-mathias.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@ jobs:
1313
ref: ${{ github.head_ref }}
1414
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
1515

16-
- name: Read .nvmrc
17-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
18-
id: nvm
19-
2016
- name: Set up Node.js
21-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v2
2218
with:
23-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
19+
node-version-file: '.nvmrc'
2420

2521
- name: Install dependencies
2622
run: npm install

‎.github/workflows/import-markers-pieter.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@ jobs:
1313
ref: ${{ github.head_ref }}
1414
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
1515

16-
- name: Read .nvmrc
17-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
18-
id: nvm
19-
2016
- name: Set up Node.js
21-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v2
2218
with:
23-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
19+
node-version-file: '.nvmrc'
2420

2521
- name: Install dependencies
2622
run: npm install

0 commit comments

Comments
 (0)