From 193c979bd895b289e5b8b13e745b8145deefbc9b Mon Sep 17 00:00:00 2001 From: Markus Alexander Kuppe Date: Mon, 8 Nov 2021 21:42:18 -0800 Subject: [PATCH] Increase nodejs version to 14.17 to fix incompatibility 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. (/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] --- .github/workflows/ci.yml | 2 +- .github/workflows/pre-release.yml | 2 +- .github/workflows/release-nightly.yml | 3 +-- .github/workflows/release.yml | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a404a25..3dffafb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 5d0a1d2..aa96b69 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -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)" diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index b96862c..72841b5 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -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 @@ -42,7 +42,6 @@ jobs: run: | npm install npm install -g vsce - npm install -g npx - name: Build run: | npm run vscode:prepublish diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c33301f..1b45293 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,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)" @@ -17,7 +17,6 @@ jobs: run: | npm install npm install -g vsce - npm install -g npx - name: Build run: | npm run vscode:prepublish