Skip to content

Commit

Permalink
ci: call yarn command from the corepack command (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal authored Dec 6, 2023
1 parent cde30ee commit 6ef0744
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Install Dependencies
run: yarn install
run: corepack yarn install

- name: Create Package
run: yarn pack
run: corepack yarn pack

- name: Upload Package as Artifact
uses: actions/upload-artifact@v3.1.3
Expand All @@ -49,7 +49,7 @@ jobs:
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Install Dependencies
run: yarn install
run: corepack yarn install

- name: Generate Documentation
run: yarn doc
run: corepack yarn doc
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Install Dependencies
run: yarn install
run: corepack yarn install

- name: Generate Documentation
run: yarn doc
run: corepack yarn doc

- name: Upload Documentation
uses: actions/upload-pages-artifact@v2.0.0
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: corepack enable yarn

- name: Check Yarn Version
run: yarn set version stable && git diff --exit-code HEAD
run: corepack yarn set version stable && git diff --exit-code HEAD

- name: Cache Dependencies
uses: actions/cache@v3.3.2
Expand All @@ -25,13 +25,13 @@ jobs:
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Install Dependencies
run: yarn install
run: corepack yarn install

- name: Check Format
run: yarn format && git diff --exit-code HEAD
run: corepack yarn format && git diff --exit-code HEAD

- name: Check Lint
run: yarn lint
run: corepack yarn lint

test-package:
name: Test Package
Expand All @@ -55,9 +55,9 @@ jobs:
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Install Dependencies
run: yarn install
run: corepack yarn install

- name: Test Package
run: yarn test
run: corepack yarn test
env:
NODE_OPTIONS: --experimental-vm-modules

0 comments on commit 6ef0744

Please sign in to comment.