Skip to content

Commit ed7c868

Browse files
authored
feat: update to node20 (#350)
* feat: update to node20 * chore: update lock file * feat: introduce v7 steps for node20 * chore: bump extension version to 7 * chore: use environment files rather than set-output * chore: revert v6 changes * chore: update readme
1 parent 71306c9 commit ed7c868

File tree

86 files changed

+3894
-452
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+3894
-452
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
required: true
2222

2323
env:
24-
PACKAGE_VERSION: 6.0.${{ github.run_number }}
24+
PACKAGE_VERSION: 7.0.${{ github.run_number }}
2525
OCTOPUS_URL: ${{ secrets.OCTOPUS_URL }}
2626
OCTOPUS_API_KEY: ${{ secrets.INTEGRATIONS_API_KEY }}
2727

@@ -36,15 +36,15 @@ jobs:
3636
- name: Use Node.js
3737
uses: actions/setup-node@v3
3838
with:
39-
node-version: "16"
39+
node-version: "20"
4040
cache: "npm"
4141

4242
- name: Build
4343
id: build
4444
run: |
4545
npm ci
4646
npm run build -- --extensionVersion $PACKAGE_VERSION
47-
echo "::set-output name=package_version::$PACKAGE_VERSION"
47+
echo "package_version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT
4848
- uses: actions/upload-artifact@v4
4949
with:
5050
name: dist
@@ -66,7 +66,7 @@ jobs:
6666
- name: Use Node.js
6767
uses: actions/setup-node@v3
6868
with:
69-
node-version: "16"
69+
node-version: "20"
7070
cache: "npm"
7171

7272
- name: Test
@@ -96,7 +96,7 @@ jobs:
9696
- name: Use Node.js
9797
uses: actions/setup-node@v3
9898
with:
99-
node-version: "16"
99+
node-version: "20"
100100
cache: "npm"
101101

102102
- name: Install Go
@@ -135,7 +135,7 @@ jobs:
135135
echo "::debug::${{github.event_name}}"
136136
OUTPUT_FILE="release_notes.txt"
137137
jq --raw-output '.release.body' ${{ github.event_path }} | sed 's#\r# #g' > $OUTPUT_FILE
138-
echo "::set-output name=release-note-file::$OUTPUT_FILE"
138+
echo "release-note-file=$OUTPUT_FILE" >> $GITHUB_OUTPUT
139139
140140
- name: Create a release in Octopus Deploy 🐙
141141
uses: OctopusDeploy/create-release-action@v3

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ Microsoft TFS/ADO web extensions are powered by Node.js under the hood. Simply o
2626

2727
### Prerequisites
2828

29-
* Node.js 10.15.3 (LTS) (`choco install nodejs` or `brew install node@10` or [web](https://nodejs.org))
29+
* Node.js (`choco install nodejs --version="20.19.4"` or `nvm install 20` or [web](https://nodejs.org))
30+
* Pre-v6 tasks: 10.15.3 (EOL)
31+
* v6 tasks: 16.20.2 (EOL)
32+
* v7 tasks: 20.19.4 (LTS)
3033
* NPM: 5.6.0+ (`npm install npm@latest -g`)
3134
* TFX (`npm install tfx-cli -g`)
3235
* Install golang (`choco install golang` or `brew install go` or [web](https://golang.org))

0 commit comments

Comments
 (0)