Skip to content

Commit

Permalink
Update GitHub actions to the latest version (#131)
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 authored Apr 18, 2024
1 parent cf840ea commit 4925609
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@ 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: npm test
if: ${{matrix.os!='ubuntu-latest'}}
- run: xvfb-run npm test
if: ${{matrix.os=='ubuntu-latest'}}

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 4925609

Please sign in to comment.