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.
This commit is contained in:
Mauricio Siu
2026-04-15 21:05:39 -06:00
parent d5f9d5b8fc
commit 0d54e9bcac
2 changed files with 8 additions and 2 deletions

View File

@@ -4,6 +4,9 @@ on:
push: push:
branches: [main] branches: [main]
env:
COREPACK_ENABLE_STRICT: 0
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -22,7 +25,7 @@ jobs:
cache: pnpm cache: pnpm
registry-url: https://registry.npmjs.org registry-url: https://registry.npmjs.org
- run: pnpm install - run: pnpm install --ignore-scripts
- run: pnpm run build - run: pnpm run build
- name: Check if version already exists - name: Check if version already exists

View File

@@ -5,6 +5,9 @@ on:
branches-ignore: [main] branches-ignore: [main]
workflow_dispatch: workflow_dispatch:
env:
COREPACK_ENABLE_STRICT: 0
jobs: jobs:
test: test:
strategy: strategy:
@@ -22,6 +25,6 @@ jobs:
with: with:
node-version: ${{ matrix.node_version }} node-version: ${{ matrix.node_version }}
cache: pnpm cache: pnpm
- run: pnpm install - run: pnpm install --ignore-scripts
- run: pnpm run build - run: pnpm run build
- run: pnpm run test - run: pnpm run test