mirror of
https://github.com/Dokploy/cli.git
synced 2026-06-15 20:25:22 +02:00
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:
5
.github/workflows/onPushToMain.yml
vendored
5
.github/workflows/onPushToMain.yml
vendored
@@ -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
|
||||||
|
|||||||
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user