Skip to content

Commit 0d54e9b

Browse files
committed
chore: update GitHub workflows to disable strict Corepack mode and ignore scripts during installation
- Added environment variable COREPACK_ENABLE_STRICT set to 0 in both onPushToMain.yml and test.yml workflows. - Modified pnpm install command to include --ignore-scripts flag, preventing scripts from running during installation.
1 parent d5f9d5b commit 0d54e9b

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/onPushToMain.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: [main]
66

7+
env:
8+
COREPACK_ENABLE_STRICT: 0
9+
710
jobs:
811
release:
912
runs-on: ubuntu-latest
@@ -22,7 +25,7 @@ jobs:
2225
cache: pnpm
2326
registry-url: https://registry.npmjs.org
2427

25-
- run: pnpm install
28+
- run: pnpm install --ignore-scripts
2629
- run: pnpm run build
2730

2831
- name: Check if version already exists

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches-ignore: [main]
66
workflow_dispatch:
77

8+
env:
9+
COREPACK_ENABLE_STRICT: 0
10+
811
jobs:
912
test:
1013
strategy:
@@ -22,6 +25,6 @@ jobs:
2225
with:
2326
node-version: ${{ matrix.node_version }}
2427
cache: pnpm
25-
- run: pnpm install
28+
- run: pnpm install --ignore-scripts
2629
- run: pnpm run build
2730
- run: pnpm run test

0 commit comments

Comments
 (0)