Updated to Node 20 and 22

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
Co-authored-by: Patrik Oldsberg <patriko@spotify.com>
This commit is contained in:
Andre Wanlin
2024-09-10 19:51:17 -05:00
committed by Patrik Oldsberg
parent 93e3f21f00
commit 702f41dd01
32 changed files with 79 additions and 69 deletions
+2 -2
View File
@@ -29,13 +29,13 @@ jobs:
- name: setup-node
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org/
- name: yarn install
uses: backstage/actions/yarn-install@25145dd4117d50e1da9330e9ed2893bc6b75373e # v0.6.15
with:
cache-prefix: linux-v18
cache-prefix: linux-v20
- name: breaking changes check
run: |
+2 -2
View File
@@ -19,7 +19,7 @@ jobs:
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
name: Verify ${{ matrix.node-version }}
steps:
@@ -35,7 +35,7 @@ jobs:
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
name: Test ${{ matrix.node-version }}
steps:
+3 -3
View File
@@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
env:
CI: true
@@ -55,7 +55,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
env:
CI: true
@@ -153,7 +153,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
name: Test ${{ matrix.node-version }}
services:
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x]
node-version: [20.x]
steps:
- name: Harden Runner
+8 -8
View File
@@ -58,16 +58,16 @@ jobs:
with:
ref: refs/tags/${{ steps.find-release.outputs.result }}
- name: use node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org/ # Needed for auth
- name: yarn install
uses: backstage/actions/yarn-install@25145dd4117d50e1da9330e9ed2893bc6b75373e # v0.6.15
with:
cache-prefix: ${{ runner.os }}-v18.x
cache-prefix: ${{ runner.os }}-v20.x
- name: build API reference
run: yarn build:api-docs
@@ -98,16 +98,16 @@ jobs:
- name: checkout master
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: use node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org/ # Needed for auth
- name: yarn install
uses: backstage/actions/yarn-install@25145dd4117d50e1da9330e9ed2893bc6b75373e # v0.6.15
with:
cache-prefix: ${{ runner.os }}-v18.x
cache-prefix: ${{ runner.os }}-v20.x
- name: build API reference
run: yarn build:api-docs
@@ -162,10 +162,10 @@ jobs:
with:
egress-policy: audit
- name: use node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org/ # Needed for auth
# Stable docs
+2 -2
View File
@@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
services:
postgres16:
@@ -143,7 +143,7 @@ jobs:
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
steps:
- name: Harden Runner
+3 -3
View File
@@ -18,16 +18,16 @@ jobs:
# 'v' prefix is added here for the tag, we keep it out of the manifest logic
ref: v${{ github.event.client_payload.version }}
- name: use node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org/ # Needed for auth
- name: yarn install
uses: backstage/actions/yarn-install@25145dd4117d50e1da9330e9ed2893bc6b75373e # v0.6.15
with:
cache-prefix: ${{ runner.os }}-v18.x
cache-prefix: ${{ runner.os }}-v20.x
- name: Build yarn plugin
working-directory: packages/yarn-plugin
@@ -18,15 +18,15 @@ jobs:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: use node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org/ # Needed for auth
- name: yarn install
uses: backstage/actions/yarn-install@25145dd4117d50e1da9330e9ed2893bc6b75373e # v0.6.15
with:
cache-prefix: ${{ runner.os }}-v18.x
cache-prefix: ${{ runner.os }}-v20.x
- name: Create Snyk report
uses: snyk/actions/node@cdb760004ba9ea4d525f2e043745dfe85bb9077e # master
+3 -3
View File
@@ -25,14 +25,14 @@ jobs:
egress-policy: audit
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 18.x
node-version: 20.x
- name: yarn install
uses: backstage/actions/yarn-install@25145dd4117d50e1da9330e9ed2893bc6b75373e # v0.6.15
with:
cache-prefix: ${{ runner.os }}-v18.x
cache-prefix: ${{ runner.os }}-v20.x
- name: run Lighthouse CI
run: |
yarn dlx @lhci/cli@0.11.x autorun
+1 -1
View File
@@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
name: E2E Linux ${{ matrix.node-version }}
steps:
+1 -1
View File
@@ -32,7 +32,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
env:
CI: true
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
env:
CI: true
@@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
name: E2E Windows ${{ matrix.node-version }}
steps:
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
env:
CI: true
+2 -2
View File
@@ -30,10 +30,10 @@ jobs:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: use node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 18.x
node-version: 20.x
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
with:
python-version: '3.9'
@@ -21,10 +21,10 @@ jobs:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 18.x
node-version: 20.x
- name: top-level install
run: yarn install --immutable
+1 -1
View File
@@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]
node-version: [20.x]
name: Storybook
steps:
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
env:
CI: true