Skip to content

Commit

Permalink
build: bump ci action, node, and dependency versions (#82)
Browse files Browse the repository at this point in the history
* ci: bump ci action versions

Signed-off-by: Tomer Figenblat <[email protected]>

* ci: bump node version to 20

Signed-off-by: Tomer Figenblat <[email protected]>

* build: bump dependencies to recommended version with npm update

Signed-off-by: Tomer Figenblat <[email protected]>

---------

Signed-off-by: Tomer Figenblat <[email protected]>
  • Loading branch information
TomerFi authored Aug 13, 2024
1 parent cf2653c commit 85c3d5a
Show file tree
Hide file tree
Showing 4 changed files with 7,805 additions and 2,807 deletions.
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

0 comments on commit 85c3d5a

Please sign in to comment.