Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: bump ci action, node, and dependency versions #82

Merged
merged 3 commits into from
Aug 13, 2024
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
10 changes: 5 additions & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install node 16
uses: actions/setup-node@v3
- name: Install node 20
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'
cache: npm

- name: Cache vscode-test folder
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .vscode-test
key: ${{ runner.os }}-vscode-test-${{ hashFiles('package.json') }}
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,29 @@ jobs:
release_name: ${{ steps.release_name.outputs.value }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.DEPLOY_KEY }}

- name: Determine next SemVer
id: bumper
uses: tomerfi/version-bumper-action@1.1.3
uses: tomerfi/version-bumper-action@2.0.1

- name: Create a release name
id: release_name
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
var retval = '${{ steps.bumper.outputs.new_version }}'
var retval = '${{ steps.bumper.outputs.next }}'
if ('${{ github.event.inputs.title }}') {
retval = retval.concat(' - ${{ github.event.inputs.title }}')
}
core.setOutput('value', retval)

- name: Update package with new version
run: |
npm version ${{ steps.bumper.outputs.new_version }} --no-git-tag-version
npm version ${{ steps.bumper.outputs.next }} --no-git-tag-version

- name: Configure git
run: |
Expand All @@ -50,7 +50,7 @@ jobs:
run: |
git add package.json
git add package-lock.json
git commit -m "docs: updated package with ${{ steps.bumper.outputs.new_version }} [skip ci]"
git commit -m "docs: updated package with ${{ steps.bumper.outputs.next }} [skip ci]"
git push

package:
Expand All @@ -68,15 +68,15 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Pull default branch from remote
run: git pull origin ${{ github.event.repository.default_branch }}

- name: Install node 16
uses: actions/setup-node@v3
- name: Install node 20
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'
cache: npm

- name: Install project modules
Expand All @@ -92,7 +92,7 @@ jobs:
done

- name: Upload VSIX package as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: vsix
path: ./*.vsix
Expand All @@ -108,24 +108,24 @@ jobs:
fetch-depth: 0
token: ${{ secrets.OCM_BOT_PAT }}

- name: Install node 16
uses: actions/setup-node@v3
- name: Install node 20
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'
cache: npm

- name: Install project modules
run: npm ci

- name: Download VSIX package artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: vsix
path: ./vsix

- name: Create a new release
id: new_release
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ secrets.OCM_BOT_PAT }}
script: |
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install node 16
uses: actions/setup-node@v3
- name: Install node 20
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'
cache: npm

- name: Install project modules
Expand All @@ -45,7 +45,7 @@ jobs:
done

- name: Upload VSIX package as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: vsix
path: ./*.vsix
Expand All @@ -57,20 +57,20 @@ jobs:
needs: package
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.OCM_BOT_PAT }}

- name: Download VSIX package artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: vsix
path: ./vsix

- name: Check for existing EA release
id: existing_release
uses: actions/github-script@v6
uses: actions/github-script@v7
continue-on-error: true
with:
github-token: ${{ secrets.OCM_BOT_PAT }}
Expand All @@ -82,7 +82,7 @@ jobs:

- name: Delete EA release if exists
if: ${{ steps.existing_release.outputs.id }}
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ secrets.OCM_BOT_PAT }}
script: |
Expand All @@ -100,7 +100,7 @@ jobs:

- name: Create new EA release
id: new_release
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ secrets.OCM_BOT_PAT }}
script: |
Expand Down
Loading
Loading