Skip to content

Commit

Permalink
Update checkout and setup-node actions to use latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Feb 6, 2024
1 parent 03ee1cb commit 3ebcb24
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/actions/lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
runs:
using: "composite"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/prototype-kit-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
runs:
using: "composite"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/test-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
runs:
using: "composite"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
runs:
using: "composite"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Install dependencies
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get and validate version number
id: get-version
run: |
Expand All @@ -26,7 +26,7 @@ jobs:
needs:
- check
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint
uses: ./.github/actions/lint

Expand All @@ -35,7 +35,7 @@ jobs:
needs:
- check
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Tests
uses: ./.github/actions/tests

Expand All @@ -44,7 +44,7 @@ jobs:
needs:
- check
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Test build package
uses: ./.github/actions/test-package

Expand All @@ -53,7 +53,7 @@ jobs:
needs:
- test-package
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: GOV.UK prototype kit test
uses: ./.github/actions/prototype-kit-test

Expand All @@ -67,8 +67,8 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
registry-url: https://registry.npmjs.org/
Expand Down Expand Up @@ -101,8 +101,8 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
registry-url: https://registry.npmjs.org/
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
- publish-npm
- publish-npm-cookie-banner
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get release notes
id: get-release-notes
run: ./tasks/get-release-notes.sh "${{ needs.check.outputs.version }}" > RELEASE_NOTES.txt
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Install dependencies
Expand All @@ -52,10 +52,10 @@ jobs:
chromatic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
chromatic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint
uses: ./.github/actions/lint

tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Tests
uses: ./.github/actions/tests

test-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Test build package
uses: ./.github/actions/test-package

Expand All @@ -36,6 +36,6 @@ jobs:
needs:
- test-package
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: GOV.UK prototype kit test
uses: ./.github/actions/prototype-kit-test

0 comments on commit 3ebcb24

Please sign in to comment.