8000 try workaround · vscode-arduino/vscode-arduino@84cc311 · GitHub
[go: up one dir, main page]

Skip to content

Commit 84cc311

Browse files
try workaround
1 parent e62bf59 commit 84cc311

File tree

5 files changed

+1131
-788
lines changed

5 files changed

+1131
-788
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
# written, but it should be updated when VS Code updates its Node version.
3030
# Node needs to be installed before OS-specific setup so that we can run
3131
# the hash verification script.
32-
- name: Use Node 16.x
32+
- name: Use Node 18.x
3333
uses: actions/setup-node@v2
3434
with:
35-
node-version: 16.x
35+
node-version: 18.x
3636

3737
# On new macos-latest machines, Python 3.9+ is used, and it's causing issues with binding.gyp
3838
- name: Use Python 3.8
@@ -72,14 +72,22 @@ jobs:
7272
if: ${{ matrix.os != 'windows-latest' }}
7373
run: npm install --global gulp
7474
- name: Install global dependencies
75-
run: npm install --global node-gyp
75+
run: npm install --global node-gyp vsce
7676
- name: Install project dependencies
7777
run: npm install
7878

7979
- name: Check for linting errors
8080
run: gulp tslint
8181
- name: Build and pack extension
82-
run: node build/package.js
82+
if: ${{ matrix.os != 'windows-latest' }}
83+
run: |
84+
export NODE_OPTIONS="--no-experimental-fetch"
85+
node build/package.js
86+
- name: Build and pack extension
87+
if: ${{ matrix.os == 'windows-latest' }}
88+
run: |
89+
$env:NODE_OPTIONS="--no-experimental-fetch"
90+
node build/package.js
8391
- name: Publish extension VSIX as artifact
8492
uses: actions/upload-artifact@v2
8593
with:

build/build.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
zipSources: false
2828
condition: ne(variables['Build.Reason'], 'PullRequest')
2929
- task: NodeTool@0
30-
displayName: Use Node 16.x
30+
displayName: Use Node 18.x
3131
inputs:
32-
versionSpec: 16.x
32+
versionSpec: 18.x
3333
- ${{ if parameters.prerelease }}:
3434
- pwsh: node -e "p=require('./package.json');p.version=p.version.replace(/\.\d+$/,'.'+$(Build.BuildNumber));require('fs').writeFileSync('./package.json',JSON.stringify(p,undefined,2))"
35-
- script: npm install --global gulp node-gyp
35+
- script: npm install --global gulp node-gyp @vscode/vsce
3636
displayName: Install global dependencies
3737
- script: npm install
3838
displayName: Install project dependencies
@@ -49,10 +49,14 @@ jobs:
4949
displayName: Use production AI key
5050
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
5151
- ${{ if parameters.prerelease }}:
52-
- script: node build/package.js --pre-release
52+
- script: |
53+
$env:NODE_OPTIONS = "--no-experimental-fetch"
54+
node build/package.js --pre-release
5355
displayName: Build and pack extension
5456
- ${{ else }}:
55-
- script: node build/package.js
57+
- script: |
58+
$env:NODE_OPTIONS = "--no-experimental-fetch"
59+
node build/package.js
5660
displayName: Build and pack extension
5761
- pwsh: |
5862
$path = Join-Path $Env:TEMP "7z-installer.exe"

build/prerelease.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ extends:
5454
- download: current
5555
artifact: extension-vsixes
5656
- task: NodeTool@0
57-
displayName: Use Node 16.x
57+
displayName: Use Node 18.x
5858
inputs:
59-
versionSpec: 16.x
59+
versionSpec: 18.x
6060
- script: npm install --global @vscode/vsce
6161
displayName: Install vsce
6262
- script: for f in $(Pipeline.Workspace)/extension-vsixes/*.vsix; do vsce publish --packagePath $f; done

0 commit comments

Comments
 (0)
0