Skip to content

Commit

Permalink
fix: bump action to Node v20 (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov authored Oct 23, 2023
1 parent a280959 commit 2509f13
Show file tree
Hide file tree
Showing 12 changed files with 274 additions and 70 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/example-basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# during development we use the latest version of this action
# in the real world, the user should use
# - uses: bahmutov/npm-install@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-install-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./
with:
install-command: yarn --frozen-lockfile --silent
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-node-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
# https://github.com/actions/setup-node
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
# during development we use the latest version of this action
# in the real world, the user should use
# - uses: bahmutov/npm-install@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-rolling-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: bahmutov/npm-install@HEAD
with:
working-directory: examples/rolling-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-shrinkwrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: bahmutov/npm-install@HEAD
with:
working-directory: examples/shrinkwrap
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/example-subfolders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
os: [ubuntu-20.04, windows-latest, macOS-latest]
name: Test on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# typically we would use a SHA or branch name
# of an action like
# - uses: bahmutov/npm-install@v1
Expand All @@ -34,7 +34,7 @@ jobs:
os: [ubuntu-20.04, windows-latest, macOS-latest]
name: Test on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./
with:
# specify a directory per line
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-without-lock-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: bahmutov/npm-install@HEAD
with:
working-directory: examples/without-lock-file
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-yarn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: bahmutov/npm-install@HEAD
with:
working-directory: examples/yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- run: echo $GITHUB_SHA

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ See [example-install-command.yml](./.github/workflows/example-install-command.ym

### Node version

If you need to use a specific Node version, use the []() before installing the dependencies.
If you need to use a specific Node version, use the [actions/setup-node](https://github.com/actions/setup-node) before installing the dependencies.

```yml
- uses: actions/checkout@v3
# pick the Node version to use and install it
# https://github.com/actions/setup-node
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- uses: bahmutov/npm-install@v1
```

Expand Down
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: 'NPM or Yarn install with caching'
description: 'Install npm dependencies with caching'
author: 'Gleb Bahmutov'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
branding:
color: 'yellow'
Expand Down
Loading

0 comments on commit 2509f13

Please sign in to comment.