Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): update github actions versions to support node 20 #7434

Merged
merged 2 commits into from Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 16 additions & 16 deletions docs/pages/repo/docs/ci/github-actions.mdx
Expand Up @@ -67,14 +67,14 @@ Create file called `.github/workflows/ci.yml` in your repository with the follow

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'npm'

- name: Install dependencies
Expand Down Expand Up @@ -110,14 +110,14 @@ Create file called `.github/workflows/ci.yml` in your repository with the follow

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'yarn'

- name: Install dependencies
Expand Down Expand Up @@ -153,18 +153,18 @@ Create file called `.github/workflows/ci.yml` in your repository with the follow

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: pnpm/action-setup@v2.0.1
- uses: pnpm/action-setup@v3
with:
version: 6.32.2
version: 8

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'pnpm'

- name: Install dependencies
Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2
# ...
Expand Down Expand Up @@ -272,20 +272,20 @@ The following steps exemplify how you could use [actions/cache](https://github.c
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache turbo build setup
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: 'npm'

- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions examples/design-system/.github/workflows/release.yml
Expand Up @@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node.js 18.x
uses: actions/setup-node@v2
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Install Dependencies
run: yarn
Expand Down
12 changes: 6 additions & 6 deletions examples/with-changesets/.github/workflows/release.yml
Expand Up @@ -13,17 +13,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup pnpm 7
uses: pnpm/action-setup@v2
- name: Setup pnpm 8
uses: pnpm/action-setup@v3
with:
version: 7
version: 8

- name: Setup Node.js 18.x

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x

- name: Install Dependencies
run: pnpm i
Expand Down