Skip to content

Commit 80d0ec0

Browse files
committed
Update yarn.yml
1 parent 1815766 commit 80d0ec0

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

.github/workflows/yarn.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,30 @@
33

44
name: Yarn Build
55

6-
on:
7-
push:
8-
branches: [ master ]
9-
pull_request:
10-
branches: [ master ]
6+
on: [push]
117

128
jobs:
139
build:
14-
1510
runs-on: ubuntu-latest
1611

17-
strategy:
18-
matrix:
19-
node-version: [16.x, 17.x]
20-
2112
steps:
22-
- uses: actions/checkout@v3
23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v3
25-
with:
26-
node-version: ${{ matrix.node-version }}
27-
- run: yarn install
28-
- run: yarn build
13+
- uses: actions/checkout@v2
14+
- name: Run a one-line script
15+
run: echo Hello, world!
16+
17+
- name: corepack
18+
run: corepack enable
19+
20+
- name: yarn global
21+
run: corepack prepare yarn@stable --activate
22+
23+
- name: Set yarn version
24+
run: yarn set version stable
25+
26+
- name: install
27+
working-directory: .
28+
run: yarn install
29+
30+
- name: build
31+
working-directory: .
32+
run: yarn run build

0 commit comments

Comments
 (0)