Skip to content

Commit

Permalink
Update GitHub actions to the latest version
Browse files Browse the repository at this point in the history
This includes the update of the Node.js version used. The action
`GabrielBB/xvfb-action` is deprecated and is no longer needed.
  • Loading branch information
remcohaszing committed Apr 18, 2024
1 parent cf840ea commit 95e6472
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,23 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- run: npm install
- name: test
uses: GabrielBB/[email protected]
with:
run: npm test
- run: xvfb-run npm test

package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- run: npm install
- run: npx vsce package
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: vscode-remark.vsix
path: '*.vsix'
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- run: npm install
- run: npx vsce package
- run: npx vsce publish --packagePath *.vsix
Expand Down

0 comments on commit 95e6472

Please sign in to comment.