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
2 changed files with 11 additions and 5 deletions

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