Skip to content

Commit 98e727a

Browse files
authored
Merge pull request #921 from puppetlabs/fix_nightly_failure_npm_version
Fix nightly workflow failures: BUILD_VERSION context and Node.js compatibility
2 parents 34b1c8f + 5314644 commit 98e727a

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.github/workflows/mend.yml

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

17-
- name: 'setup node: 18 platform: ${{ runner.os }}'
17+
- name: 'setup node: 20 platform: ${{ runner.os }}'
1818
uses: actions/setup-node@v4
1919
with:
20-
node-version: 18
20+
node-version: 20
2121

2222
- name: npm install
2323
run: |

.github/workflows/nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
node-version: [18]
13+
node-version: [20]
1414
os: [ubuntu-latest, windows-latest, macos-latest]
1515

1616
steps:
@@ -62,7 +62,7 @@ jobs:
6262
6363
- name: npm test
6464
env:
65-
BUILD_VERSION: '0.99.${{ github.event.number }}'
65+
BUILD_VERSION: 0.99.${{ github.run_number }}
6666
VSCODE_BUILD_VERBOSE: true
6767
DISPLAY: ':99.0'
6868
shell: pwsh
@@ -72,7 +72,7 @@ jobs:
7272
- name: vsce package
7373
if: runner.os == 'Linux'
7474
env:
75-
BUILD_VERSION: '0.99.${{ github.event.number }}'
75+
BUILD_VERSION: 0.99.${{ github.run_number }}
7676
shell: pwsh
7777
run: |
7878
invoke-psake -properties @{ packageVersion = $env:BUILD_VERSION } -tasklist bump

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55

66
env:
7-
NODE_VERSION: '18.x'
7+
NODE_VERSION: '20'
88

99
jobs:
1010
release:

.github/workflows/release_prep.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: "Release Prep"
1717
runs-on: "ubuntu-latest"
1818
env:
19-
NODE_VERSION: "18"
19+
NODE_VERSION: "20"
2020

2121
steps:
2222
- name: "Checkout"

.github/workflows/vscode-ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ on:
99
- "main"
1010
workflow_dispatch:
1111

12-
env:
12+
env:
1313
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1414

1515
jobs:
1616
build:
1717
runs-on: ${{ matrix.os }}
1818
strategy:
1919
matrix:
20-
node-version: [18]
20+
node-version: [20]
2121
os: [ubuntu-latest, windows-latest, macos-latest]
2222

2323
steps:
@@ -76,16 +76,16 @@ jobs:
7676
npm run test:coverage
7777
7878
- name: Upload Coverage
79-
if: |
80-
runner.os == 'Linux' &&
79+
if: |
80+
runner.os == 'Linux' &&
8181
env.CODECOV_TOKEN != ''
8282
uses: codecov/codecov-action@v4
8383
with:
8484
token: ${{ secrets.CODECOV_TOKEN }}
8585
files: ./coverage.xml
8686
fail_ci_if_error: true
8787
verbose: true
88-
88+
8989
- name: vsce package
9090
if: runner.os == 'Linux'
9191
env:

0 commit comments

Comments
 (0)