Skip to content

Commit

Permalink
fix: update node version to 20 (#184)
Browse files Browse the repository at this point in the history
* fix: updating the dependency versions

* fix: updated the package dependnecies

* fix: updated the package dependnecies
  • Loading branch information
MukeshSathyanarayana authored Jul 11, 2024
1 parent c98ade4 commit c870389
Show file tree
Hide file tree
Showing 15 changed files with 116,032 additions and 94,765 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/branch-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3.5.1
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v4
with:
version: 7.9.0
version: 8
run_install: false
- name: Determine pnpm cache directory
id: pnpm-cache
run: echo "dir=$(pnpm config get cache)" >> $GITHUB_OUTPUT
- name: Restore npm cache
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.dir}}
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.json') }}
Expand All @@ -52,7 +52,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: RushJS Helper
uses: ./
with:
Expand All @@ -74,7 +74,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: RushJS Helper
uses: ./
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set Node.js 16.x
uses: actions/setup-node@v3.5.1
- name: Set Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x

- name: Setup PNPM
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v4
with:
version: 7.9.0
version: 8
run_install: true

- name: Rebuild the dist/ directory
Expand All @@ -42,7 +42,7 @@ jobs:
id: diff

# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
Expand All @@ -61,7 +61,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -75,4 +75,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
14 changes: 7 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3.5.1
uses: actions/setup-node@v4
with:
node-version: '16.x'
- name: Determine npm cache directory
id: npm-cache
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- name: Restore npm cache
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir}}
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v4
with:
version: 7.9.0
version: 8
run_install: true
- name: Build & Test
run: pnpm test
Expand All @@ -53,7 +53,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: RushJS Helper
uses: ./
with:
Expand All @@ -71,7 +71,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: RushJS Helper
uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion __tests__/data/common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion __tests__/data/rush.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "test": "Mon 12 Dec 2022 11:05:57 GMT" }
{ "test": "Thu, Jul 11, 2024 11:04:42 AM" }
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 'RushJS Helper'
author: Martin Reynolds
description: 'Run rush install if required and manage caching for optimal performance and incremental builds.'
runs:
using: 'node16'
using: 'node20'
main: 'dist/restore/index.js'
post: 'dist/save/index.js'
post-if: 'success()'
Expand Down
Loading

0 comments on commit c870389

Please sign in to comment.