Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
version: ${{ steps.set-version.outputs.version }}
taggedbranch: ${{ steps.find-branch.outputs.taggedbranch }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Find which branch the release tag points at
id: find-branch
Expand Down Expand Up @@ -58,19 +58,17 @@ jobs:
echo $VERSION > .version
echo $NAME > .name
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
- run: npm install
- run: npm run compile
- name: npm test
uses: coactions/setup-xvfb@v1
with:
run: npm run test
run: xvfb-run npm test
- name: Build package
run: |
npx vsce package -o ${{ steps.set-version.outputs.name }}.vsix
- uses: actions/upload-artifact@v4.4.2
- uses: actions/upload-artifact@v6
if: github.event_name != 'release'
with:
name: ${{ steps.set-version.outputs.name }}.vsix
Expand All @@ -80,7 +78,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v4.1.7
- uses: actions/download-artifact@v6
with:
name: ${{ needs.build.outputs.name }}.vsix
- name: Create Release
Expand All @@ -97,14 +95,14 @@ jobs:
if: github.event_name == 'release' && needs.build.outputs.taggedbranch == 'master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
with:
ref: master
token: ${{ secrets.TOKEN }}
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
- name: Prepare build
id: set-version
shell: bash
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
version: ${{ steps.set-version.outputs.version }}
taggedbranch: ${{ steps.find-branch.outputs.taggedbranch }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Find which branch the release tag points at
id: find-branch
Expand Down Expand Up @@ -58,19 +58,17 @@ jobs:
echo $VERSION > .version
echo $NAME > .name
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
- run: npm install
- run: npm run compile
- name: npm test
uses: coactions/setup-xvfb@v1
with:
run: npm run test
run: xvfb-run npm test
- name: Build pre-release package
run: |
npx vsce package --pre-release -o ${{ steps.set-version.outputs.name }}.vsix --githubBranch prerelease
- uses: actions/upload-artifact@v4.4.2
- uses: actions/upload-artifact@v6
if: github.event_name != 'release'
with:
name: ${{ steps.set-version.outputs.name }}.vsix
Expand All @@ -80,7 +78,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v4.1.7
- uses: actions/download-artifact@v6
with:
name: ${{ needs.build.outputs.name }}.vsix
- name: Create Pre-Release
Expand All @@ -99,14 +97,14 @@ jobs:
if: github.event_name == 'release' && needs.build.outputs.taggedbranch == 'prerelease'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
with:
ref: prerelease
token: ${{ secrets.TOKEN }}
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
- name: Prepare pre-release build
id: set-version
shell: bash
Expand Down