Skip to content

Commit

Permalink
build: update github action
Browse files Browse the repository at this point in the history
update yarn config

Signed-off-by: lixd <[email protected]>
  • Loading branch information
lixd committed Jul 25, 2024
1 parent 6f50466 commit 81e9b88
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/buid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ jobs:
- name: Setup node env and build
uses: actions/setup-node@v3
with:
node-version: 14.17
cache: 'yarn'
cache-dependency-path: yarn.lock
node-version: 16.13
#cache: 'yarn'
#cache-dependency-path: yarn.lock

- name: Build
run: |
yarn cache clean
yarn config set strict-ssl false
rm -rf yarn.lock
yarn install
yarn run build-with-args true
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup node env and build
uses: actions/setup-node@v3
with:
node-version: 14.17
node-version: 16.13
cache: 'yarn'
cache-dependency-path: yarn.lock

Expand All @@ -35,6 +35,9 @@ jobs:

- name: Build
run: |
yarn cache clean
yarn config set strict-ssl false
rm -rf yarn.lock
yarn install
yarn run build-with-args true
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ jobs:
- name: Setup node env and build
uses: actions/setup-node@v3
with:
node-version: 14.17
node-version: 16.13
cache: 'yarn'
cache-dependency-path: yarn.lock

- name: Install dependencies
run: yarn install --frozen-lockfile
run: |
yarn cache clean
yarn config set strict-ssl false
rm -rf yarn.lock
yarn install --frozen-lockfile
- name: Unit test
run: yarn run test:unit:coverage
Expand Down

0 comments on commit 81e9b88

Please sign in to comment.