diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5039134..9148b8d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 8eeef15..a328527 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -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 @@ -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 @@ -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 @@ -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