Skip to content

Commit

Permalink
Removed unsupported --ignore-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed May 31, 2024
1 parent aa06ba0 commit 04f3973
Show file tree
Hide file tree
Showing 12 changed files with 17,678 additions and 12,133 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
node-version: 20.x
cache: 'yarn'
- run: yarn install --immutable --ignore-scripts
- run: yarn install --immutable
- run: yarn lint
- run: yarn build:backend
- run: yarn run test:report # This adds test results as github check to the workflow
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gradual-strict-null-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ jobs:
YARN_1="yarn --mutex network --cwd ./current"
YARN_2="yarn --mutex network --cwd ./main"
$YARN_1 install --ignore-scripts &> /dev/null && $YARN_1 build:backend --strictNullChecks true 2> .stderr-current > .out-current &
$YARN_1 install &> /dev/null && $YARN_1 build:backend --strictNullChecks true 2> .stderr-current > .out-current &
pid1=$!
$YARN_2 install --ignore-scripts &> /dev/null && $YARN_2 build:backend --strictNullChecks true 2> .stderr-main > .out-main &
$YARN_2 install &> /dev/null && $YARN_2 build:backend --strictNullChecks true 2> .stderr-main > .out-main &
pid2=$!
# wait for the processes that are expected to fail
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-new-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ jobs:
else
echo "No changes to CHANGELOG.md"
fi
- run: yarn install --immutable --ignore-scripts
- run: yarn install --immutable
- name: npm version
run: |
npm version ${{ github.event.inputs.version }} --ignore-scripts
npm version ${{ github.event.inputs.version }}
git push origin ${{ github.ref_name }}
git push --tags
env:
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
mv package.json.tmp package.json
- name: lint
run: |
yarn install --immutable --ignore-scripts
yarn install --immutable
yarn lint:fix
- name: push changes
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
DATABASE_URL: postgres://postgres:unleash@localhost:5432/unleash
DATABASE_SSL: false
run: |
yarn install --immutable --ignore-scripts
yarn install --immutable
yarn db-migrate up
# run ui tests against previous version of Unleash
- name: Run Cypress
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN corepack enable

RUN yarn config set network-timeout 300000

RUN yarn install ----immutable --ignore-scripts && yarn prepare:backend && yarn local:package
RUN yarn install ----immutable && yarn prepare:backend && yarn local:package

# frontend/build should already exist (it needs to be built in the local filesystem but in case of a fresh build we'll build it here)
RUN yarn build:frontend:if-needed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"copy-templates": "copyfiles -u 1 src/mailtemplates/**/*.mustache dist/",
"build:backend": "tsc --pretty --strictNullChecks false",
"build:frontend": "yarn --cwd ./frontend run build",
"build:frontend:if-needed": "if [ ! -d ./frontend/build ]; then yarn install --cwd ./frontend --frozen-lockfile --ignore-scripts && yarn build:frontend; fi",
"build:frontend:if-needed": "if [ ! -d ./frontend/build ]; then yarn install --cwd ./frontend --frozen-lockfile && yarn build:frontend; fi",
"build": "yarn run clean && concurrently \"yarn:copy-templates\" \"yarn:build:frontend\" \"yarn:build:backend\"",
"dev:backend": "TZ=UTC NODE_ENV=development tsc-watch --strictNullChecks false --onSuccess \"node dist/server-dev.js\"",
"dev:frontend": "wait-on tcp:4242 && yarn --cwd ./frontend run dev",
Expand Down
2 changes: 1 addition & 1 deletion test-migrations/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ default:
.PHONY: prepare
prepare:
@echo "Preparing the environment..."
@yarn --cwd .. install --frozen-lockfile --ignore-scripts
@yarn --cwd .. install --frozen-lockfile


.PHONY: apply-migrations
Expand Down
Binary file added website/.yarn/install-state.gz
Binary file not shown.
894 changes: 894 additions & 0 deletions website/.yarn/releases/yarn-4.2.2.cjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions website/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarnPath: .yarn/releases/yarn-4.2.2.cjs
3 changes: 2 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,6 @@
"react-router": "6.22.3",
"replace-in-file": "7.1.0",
"typescript": "4.8.4"
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 04f3973

Please sign in to comment.