Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: custom variables aren't sharable between commands #1436

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
--autodiscover=true \
--autodiscover-filter='taiga-family/*' \
--cache-dir='.renovate' \
--allowed-env='ws' \
--allowed-post-upgrade-commands='.*'

concurrency:
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ export RENOVATE_TOKEN=ghp_FIVUf.....

npx renovate --autodiscover=true \
--autodiscover-filter='taiga-family/YOUR_REPOSITORY_NAME' \
--allowed-post-upgrade-commands='.*' \
--repository-cache=reset
--allowed-post-upgrade-commands='.*'
```
19 changes: 5 additions & 14 deletions default.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
"timezone": "Europe/Moscow",
"commitMessageLowerCase": "auto",
"semanticCommits": "enabled",
"allowedEnv": ["X-*", "ws"],
"allowedPostUpgradeCommands": [".*"],
"onboarding": false,
"allowCustomCrateRegistries": true,
"allowScripts": true,
Expand Down Expand Up @@ -143,9 +141,7 @@
"postUpgradeTasks": {
"commands": [
"rm -rf package-lock.json node_modules **/node_modules",
"node -p '!!require(`./package.json`).workspaces'",
"ws=$(node -p '!!require(`./package.json`).workspaces') && echo 'Enabled workspace:' && echo $ws",
"npm i -ws=$ws --include-workspace-root=$ws --verbose && npm i -ws=$ws --include-workspace-root=$ws",
"ws=$(node -p '!!require(`./package.json`).workspaces') && npm i -ws=$ws --include-workspace-root=$ws --verbose && npm i -ws=$ws --include-workspace-root=$ws",
"git add . && npx lint-staged --allow-empty || true"
],
"executionMode": "branch",
Expand All @@ -162,8 +158,7 @@
"npx nx migrate --run-migrations --ifExists && rm -f migrations.json || true",
"npx nx repair || true",
"rm -rf package-lock.json node_modules **/node_modules",
"ws=$(node -p '!!require(`./package.json`).workspaces') && echo 'Enabled workspace:' && echo $ws",
"npm i -ws=$ws --include-workspace-root=$ws --verbose && npm i -ws=$ws --include-workspace-root=$ws",
"ws=$(node -p '!!require(`./package.json`).workspaces') && npm i -ws=$ws --include-workspace-root=$ws --verbose && npm i -ws=$ws --include-workspace-root=$ws",
"git add . && npx lint-staged --allow-empty || true"
],
"executionMode": "branch",
Expand All @@ -189,8 +184,7 @@
"npx nx migrate @angular/cli --from=@angular/cli@{{{currentVersion}}} --to=@angular/cli@{{{newVersion}}}",
"npx nx migrate --run-migrations --ifExists && rm -f migrations.json || true",
"rm -rf package-lock.json node_modules **/node_modules",
"ws=$(node -p '!!require(`./package.json`).workspaces') && echo 'Enabled workspace:' && echo $ws",
"npm i -ws=$ws --include-workspace-root=$ws --verbose && npm i -ws=$ws --include-workspace-root=$ws",
"ws=$(node -p '!!require(`./package.json`).workspaces') && npm i -ws=$ws --include-workspace-root=$ws --verbose && npm i -ws=$ws --include-workspace-root=$ws",
"git add . && npx lint-staged --allow-empty || true"
],
"executionMode": "branch",
Expand All @@ -213,8 +207,7 @@
"npx nx migrate @taiga-ui/cdk --from=@taiga-ui/cdk@{{{lookup (split currentVersion '.') 0}}} --to=@taiga-ui/cdk@{{{lookup (split newVersion '.') 0}}} || true",
"npx nx migrate --run-migrations --ifExists && rm -f migrations.json || true",
"rm -rf package-lock.json node_modules **/node_modules",
"ws=$(node -p '!!require(`./package.json`).workspaces') && echo 'Enabled workspace:' && echo $ws",
"npm i -ws=$ws --include-workspace-root=$ws --verbose && npm i -ws=$ws --include-workspace-root=$ws",
"ws=$(node -p '!!require(`./package.json`).workspaces') && npm i -ws=$ws --include-workspace-root=$ws --verbose && npm i -ws=$ws --include-workspace-root=$ws",
"git add . && npx lint-staged --allow-empty || true"
],
"executionMode": "branch",
Expand All @@ -232,9 +225,7 @@
"postUpgradeTasks": {
"commands": [
"rm -rf package-lock.json node_modules **/node_modules",
"ws=$(node -p '!!require(`./package.json`).workspaces')",
"ws=$(node -p '!!require(`./package.json`).workspaces') && echo 'Enabled workspace:' && echo $ws",
"npm i -ws=$ws --include-workspace-root=$ws --verbose && npm i -ws=$ws --include-workspace-root=$ws",
"ws=$(node -p '!!require(`./package.json`).workspaces') && npm i -ws=$ws --include-workspace-root=$ws --verbose && npm i -ws=$ws --include-workspace-root=$ws",
"git add . && npx lint-staged --allow-empty || true"
],
"executionMode": "branch",
Expand Down