Skip to content

Commit

Permalink
Increase nodejs version to 14.17 to fix incompatibility
Browse files Browse the repository at this point in the history
with vsce:

/Users/runner/hostedtoolcache/node/12.12.0/x64/lib/node_modules/vsce/out/package.js:136
    return (translations ?? [])
                          ^

SyntaxError: Unexpected token '?'
    at Module._compile (internal/modules/cjs/loader.js:892:18)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:849:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/Users/runner/hostedtoolcache/node/12.12.0/x64/lib/node_modules/vsce/out/main.js:27:19)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)

[Build]
  • Loading branch information
lemmy committed Nov 9, 2021
1 parent 60d015e commit 193c979
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.12'
node-version: '14.17'
- name: Install dependencies
run: npm install
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.12'
node-version: '14.17'
- name: Get current version
id: version
run: echo "::set-output name=version::$(jq -r .version package.json)"
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.12'
node-version: '14.17'
- name: Prepare nightly
run: |
.github/workflows/nightly.sh
Expand All @@ -42,7 +42,6 @@ jobs:
run: |
npm install
npm install -g vsce
npm install -g npx
- name: Build
run: |
npm run vscode:prepublish
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.12'
node-version: '14.17'
- name: Get current version
id: version
run: echo "::set-output name=version::$(jq -r .version package.json)"
- name: Install dependencies
run: |
npm install
npm install -g vsce
npm install -g npx
- name: Build
run: |
npm run vscode:prepublish
Expand Down

0 comments on commit 193c979

Please sign in to comment.