ci: call yarn command from the corepack command

This commit is contained in:
Alfi Maulana 2023-12-13 14:11:23 +07:00
parent 27e324dd89
commit e2a552c816
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4
2 changed files with 11 additions and 5 deletions

View File

@ -21,4 +21,6 @@ jobs:
uses: threeal/yarn-install-action@v1.0.0 uses: threeal/yarn-install-action@v1.0.0
- name: Build Package - 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 uses: threeal/yarn-install-action@v1.0.0
- name: Check Yarn Version - 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 - name: Check Format
run: yarn format && git diff --exit-code HEAD run: |
corepack yarn format
git diff --exit-code HEAD
- name: Check Lint - name: Check Lint
run: yarn lint run: corepack yarn lint
test-package: test-package:
name: Test Package name: Test Package
@ -45,7 +49,7 @@ jobs:
uses: threeal/yarn-install-action@v1.0.0 uses: threeal/yarn-install-action@v1.0.0
- name: Test Package - name: Test Package
run: yarn test run: corepack yarn test
env: env:
NODE_OPTIONS: --experimental-vm-modules NODE_OPTIONS: --experimental-vm-modules