-
Notifications
You must be signed in to change notification settings - Fork 360
34 lines (33 loc) · 1.01 KB
/
example-yarn-modern.yml
File metadata and controls
34 lines (33 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: example-yarn-modern
on:
push:
branches:
- 'master'
pull_request:
workflow_dispatch:
jobs:
yarn-modern:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Enable Corepack # see https://yarnpkg.com/getting-started/install
run: |
npm install -g corepack
corepack enable yarn
- name: Set up Yarn cache
uses: actions/setup-node@v6
with:
node-version-file: '.node-version'
cache: yarn
cache-dependency-path: examples/yarn-modern/yarn.lock
- name: Reinstall Corepack # actions/setup-node may have replaced Corepack with an older version
run: |
npm install -g corepack
corepack enable yarn
- name: Custom Yarn command
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
working-directory: examples/yarn-modern
# https://yarnpkg.com/cli/install
install-command: yarn install