Skip to content

Commit 4925609

Browse files
authored
Update GitHub actions to the latest version (#131)
This includes the update of the Node.js version used. The action `GabrielBB/xvfb-action` is deprecated and is no longer needed.
1 parent cf840ea commit 4925609

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/main.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ jobs:
99
os: [macos-latest, ubuntu-latest, windows-latest]
1010
runs-on: ${{matrix.os}}
1111
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
1414
with:
15-
node-version: 16
15+
node-version: 20
1616
- run: npm install
17-
- name: test
18-
uses: GabrielBB/[email protected]
19-
with:
20-
run: npm test
17+
- run: npm test
18+
if: ${{matrix.os!='ubuntu-latest'}}
19+
- run: xvfb-run npm test
20+
if: ${{matrix.os=='ubuntu-latest'}}
2121

2222
package:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v3
26-
- uses: actions/setup-node@v3
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-node@v4
2727
with:
28-
node-version: 16
28+
node-version: 20
2929
- run: npm install
3030
- run: npx vsce package
31-
- uses: actions/upload-artifact@v3
31+
- uses: actions/upload-artifact@v4
3232
with:
3333
name: vscode-remark.vsix
3434
path: '*.vsix'

.github/workflows/publish.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
publish:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
1313
with:
14-
node-version: 16
14+
node-version: 20
1515
- run: npm install
1616
- run: npx vsce package
1717
- run: npx vsce publish --packagePath *.vsix

0 commit comments

Comments
 (0)