ci: call yarn command from the corepack command (#134)

This commit is contained in:
Alfi Maulana 2023-12-14 10:04:34 +07:00 committed by GitHub
parent a56fc88b91
commit 0a416228af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -21,4 +21,6 @@ jobs:
uses: threeal/yarn-install-action@v1.0.0
- name: Build Package
run: yarn build && git diff --exit-code HEAD
run: |
corepack yarn build
git diff --exit-code HEAD

View File

@ -21,13 +21,17 @@ jobs:
uses: threeal/yarn-install-action@v1.0.0
- 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: 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
@ -45,7 +49,7 @@ jobs:
uses: threeal/yarn-install-action@v1.0.0
- name: Test Package
run: yarn test
run: corepack yarn test
env:
NODE_OPTIONS: --experimental-vm-modules