Skip to content

Commit

Permalink
ci: Invoke corepack to install yarn berry
Browse files Browse the repository at this point in the history
  • Loading branch information
BurningEnlightenment committed May 8, 2023
1 parent 47550c3 commit a1d4b29
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Yarn with Corepack
run: corepack enable |
corepack prepare yarn@stable --activate

- name: yarn install
run: yarn install --immutable --immutable-cache
Expand All @@ -23,6 +26,7 @@ jobs:
run: yarn install --immutable --immutable-cache --check-cache
if: ${{ github.event_name == 'pull_request' }}


compile:
name: Compile TypeScript
runs-on: ubuntu-latest
Expand All @@ -31,12 +35,16 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Yarn with Corepack
run: corepack enable |
corepack prepare yarn@stable --activate

- name: yarn install
run: yarn install --immutable --immutable-cache
- name: compile
run: yarn compile


lint:
name: Run ESLint
runs-on: ubuntu-latest
Expand All @@ -45,12 +53,16 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Yarn with Corepack
run: corepack enable |
corepack prepare yarn@stable --activate

- name: yarn install
run: yarn install --immutable --immutable-cache
- name: lint
run: yarn lint


test:
name: Test
runs-on: ubuntu-latest
Expand All @@ -59,6 +71,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Yarn with Corepack
run: corepack enable |
corepack prepare yarn@stable --activate

- name: yarn install
run: yarn install --immutable --immutable-cache
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Yarn with Corepack
run: corepack enable |
corepack prepare yarn@stable --activate

- name: yarn install
run: yarn install --immutable --immutable-cache
Expand Down

0 comments on commit a1d4b29

Please sign in to comment.