Skip to content

Commit fe72c2a

Browse files
update action to node 20 (#887)
* update to node 20 * output version to summary
1 parent 372d6d2 commit fe72c2a

File tree

8 files changed

+57
-23
lines changed

8 files changed

+57
-23
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ jobs:
9292
needs: vrt-runner
9393
steps:
9494
- uses: actions/checkout@v4
95-
- name: Use Node.js 16.x
95+
- name: Set up Node
9696
uses: actions/setup-node@v4
9797
with:
98-
node-version: 16
98+
node-version: 20
9999
cache: 'npm'
100100
- name: install dependencies
101101
run: npm ci

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313
jobs:
1414
build_deploy:
1515
name: Build and deploy
16-
uses: primer/.github/.github/workflows/deploy.yml@3530aade09ac06cba8a726c7bbde52f8d4d5189a
16+
uses: primer/.github/.github/workflows/deploy.yml@v2
1717
with:
1818
node_version: 20
1919
install: npm ci --legacy-peer-deps --no-audit --no-fund && npm run install:storybook

.github/workflows/deploy_preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
deploy:
1414
name: Build and deploy
15-
uses: primer/.github/.github/workflows/deploy_preview.yml@3530aade09ac06cba8a726c7bbde52f8d4d5189a
15+
uses: primer/.github/.github/workflows/deploy_preview.yml@v2
1616
with:
1717
node_version: 20
1818
install: npm ci --no-audit --no-fund --ignore-scripts && npm run install:storybook

.github/workflows/diff-v8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Posts a comment listing all the variables that changed in a PR
2-
name: Show diff for v8 design token changes
2+
name: v8 Diff for design tokens
33
on:
44
pull_request:
55
branches-ignore:

.github/workflows/release.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
with:
1717
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1818
fetch-depth: 0
1919
persist-credentials: false
2020

2121
- name: Set up Node.js
22-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4
2323
with:
24-
node-version: 16
24+
node-version: 20
2525
cache: 'npm'
2626

2727
- name: Install dependencies
@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: Create release pull request or publish to npm
4646
id: changesets
47-
uses: changesets/[email protected].5
47+
uses: changesets/[email protected].7
4848
continue-on-error: true
4949
with:
5050
title: Release Tracking
@@ -53,3 +53,11 @@ jobs:
5353
env:
5454
GITHUB_TOKEN: ${{ steps.get-access-token.outputs.access-token }}
5555
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
56+
57+
- name: Output release version to summary
58+
env:
59+
VERSION: ${{ steps.changesets.outputs.publishedPackages[0].version }}
60+
PACKAGE_NAME: ${{ steps.changesets.outputs.publishedPackages[0].name }}
61+
run: |
62+
echo "### Latest release" >> $GITHUB_STEP_SUMMARY
63+
echo "[v$VERSION](https://unpkg.com/$PACKAGE_NAME@$VERSION/)" >> $GITHUB_STEP_SUMMARY

.github/workflows/release_canary.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818
with:
1919
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
2020
fetch-depth: 0
2121

22-
- name: Set up Node.js
23-
uses: actions/setup-node@v3
22+
- name: Set up Node
23+
uses: actions/setup-node@v4
2424
with:
25-
node-version: 16.x
25+
node-version: 20
2626

2727
- name: Install dependencies
2828
run: npm ci --legacy-peer-deps --no-audit --no-fund --include=dev
@@ -51,7 +51,8 @@ jobs:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252

5353
- name: Output canary version number
54-
uses: actions/[email protected]
54+
id: commitStatus
55+
uses: actions/github-script@v7
5556
with:
5657
script: |
5758
const package = require(`${process.env.GITHUB_WORKSPACE}/package.json`)
@@ -64,3 +65,15 @@ jobs:
6465
description: package.version,
6566
target_url: `https://unpkg.com/${package.name}@${package.version}/`
6667
})
68+
// Output the release version for next step
69+
core.setOutput('packageVersion', package.version);
70+
// Output the package name for next step
71+
core.setOutput('packageName', package.name);
72+
73+
- name: Output canary version to summary
74+
env:
75+
VERSION: ${{ steps.commitStatus.outputs.packageVersion }}
76+
PACKAGE_NAME: ${{ steps.commitStatus.outputs.packageName }}
77+
run: |
78+
echo "### Latest canary release" >> $GITHUB_STEP_SUMMARY
79+
echo "[v$VERSION](https://unpkg.com/$PACKAGE_NAME@$VERSION/)" >> $GITHUB_STEP_SUMMARY

.github/workflows/release_candidate.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
with:
1717
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1818
fetch-depth: 0
1919

20-
- name: Set up Node.js
21-
uses: actions/setup-node@v3
20+
- name: Set up Node
21+
uses: actions/setup-node@v4
2222
with:
23-
node-version: 16
23+
node-version: 20
2424
cache: 'npm'
2525

2626
- name: Install dependencies
@@ -49,7 +49,8 @@ jobs:
4949
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5050

5151
- name: Output candidate version number
52-
uses: actions/[email protected]
52+
id: commitStatus
53+
uses: actions/github-script@v7
5354
with:
5455
script: |
5556
const package = require(`${process.env.GITHUB_WORKSPACE}/package.json`)
@@ -62,3 +63,15 @@ jobs:
6263
description: package.version,
6364
target_url: `https://unpkg.com/${package.name}@${package.version}/`
6465
})
66+
// Output the release version for next step
67+
core.setOutput('packageVersion', package.version);
68+
// Output the package name for next step
69+
core.setOutput('packageName', package.name);
70+
71+
- name: Output candidate version to summary
72+
env:
73+
VERSION: ${{ steps.commitStatus.outputs.packageVersion }}
74+
PACKAGE_NAME: ${{ steps.commitStatus.outputs.packageName }}
75+
run: |
76+
echo "### Latest release candidate" >> $GITHUB_STEP_SUMMARY
77+
echo "[v$VERSION](https://unpkg.com/$PACKAGE_NAME@$VERSION/)" >> $GITHUB_STEP_SUMMARY

.github/workflows/update_visual_snapshots.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ jobs:
2222
app_id: ${{ secrets.VRT_APP_ID }}
2323
private_key: ${{ secrets.VRT_PRIVATE_KEY }}
2424
- name: Checkout repository
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
with:
2727
repository: ${{ github.event.pull_request.head.repo.full_name }}
2828
ref: ${{ github.head_ref }}
2929
token: ${{ steps.generate_token.outputs.token }}
30-
- name: Set up Node.js
31-
uses: actions/setup-node@v3
30+
- name: Set up Node
31+
uses: actions/setup-node@v4
3232
with:
33-
node-version: 16
33+
node-version: 20
3434
cache: 'npm'
3535
- name: Install dependencies
3636
run: npm ci --no-audit --no-fund --ignore-scripts

0 commit comments

Comments
 (0)