Update various github actions and node versions (#2251)

* Update various github actions and node versions

* Downgrade to node@18
This commit is contained in:
Kristján Oddsson 2024-04-16 15:30:16 +02:00 committed by GitHub
parent 4c69c7e34f
commit 3ce4929427
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 24 deletions

View file

@ -14,19 +14,19 @@ jobs:
steps: steps:
- uses: google/wireit@setup-github-actions-caching/v1 - uses: google/wireit@setup-github-actions-caching/v1
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0 fetch-depth: 0
- name: Setup Node.js 16.x - name: Setup Node.js 18.x
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: 16.x node-version: 18.x
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies - name: Install Dependencies
run: npm install --ci run: npm ci
- name: Create Release Pull Request or Publish to npm - name: Create Release Pull Request or Publish to npm
id: changesets id: changesets

View file

@ -8,18 +8,18 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: google/wireit@setup-github-actions-caching/v1 - uses: google/wireit@setup-github-actions-caching/v1
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Sanity check - name: Sanity check
run: node ./scripts/lock-scan.js run: node ./scripts/lock-scan.js
- name: Setup Node 16.x - name: Setup Node 18.x
uses: actions/setup-node@v1 uses: actions/setup-node@v4
with: with:
node-version: 16.x node-version: 18.x
- name: Install Dependencies - name: Install Dependencies
run: npm install --ci run: npm ci
- name: Lint - name: Lint
run: npm run lint run: npm run lint
@ -32,15 +32,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: google/wireit@setup-github-actions-caching/v1 - uses: google/wireit@setup-github-actions-caching/v1
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Setup Node 16.x - name: Setup Node 18.x
uses: actions/setup-node@v1 uses: actions/setup-node@v4
with: with:
node-version: 16.x node-version: 18.x
- name: Install Dependencies - name: Install Dependencies
run: npm install --ci run: npm ci
- uses: microsoft/playwright-github-action@v1 - uses: microsoft/playwright-github-action@v1
@ -52,19 +52,19 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
node-version: [16.x] node-version: [18.x]
os: [ubuntu-latest] os: [ubuntu-latest]
steps: steps:
- uses: google/wireit@setup-github-actions-caching/v1 - uses: google/wireit@setup-github-actions-caching/v1
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Setup Node ${{ matrix.node-version }} - name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v1 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- name: Install Dependencies - name: Install Dependencies
run: npm install --ci run: npm ci
- name: Test - name: Test
run: npm run test:node run: npm run test:node
@ -75,19 +75,19 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
node-version: [16.x] node-version: [18.x]
os: [windows-latest] os: [windows-latest]
steps: steps:
- uses: google/wireit@setup-github-actions-caching/v1 - uses: google/wireit@setup-github-actions-caching/v1
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Setup Node ${{ matrix.node-version }} - name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v1 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- name: Install Dependencies - name: Install Dependencies
run: npm install --ci run: npm ci
- name: Test - name: Test
run: npm run test:node run: npm run test:node

2
.nvmrc
View file

@ -1 +1 @@
16 18