Skip to content

Commit

Permalink
Update actions to versions running on Node20
Browse files Browse the repository at this point in the history
As per
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/,
GitHub has started a deprecation process for the GitHub Actions that run on
Node16. We're updating Actions that use this version of Node to newer versions,
running on Node20.
  • Loading branch information
michalinacienciala committed Feb 21, 2024
1 parent ab775eb commit 909f7fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Verify committed dist directory
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Calculate hash of committed `dist` directory
run: echo "COMMITTED_HASH=${{ hashFiles('./dist/**') }}" >> $GITHUB_ENV
Expand All @@ -34,6 +34,6 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: yarn install
- run: yarn run lint
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: yarn install
- run: yarn run test

# test action works running from the graph
manual-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: mkdir ./tmp && cp ./test/data/package.json ./tmp
- uses: ./
id: bump-version
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ outputs:
description: "Resolved new version"

runs:
using: "node16"
using: "node20"
main: "./dist/index.js"

branding:
Expand Down

0 comments on commit 909f7fb

Please sign in to comment.