-
Notifications
You must be signed in to change notification settings - Fork 20
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
Project command #387
Project command #387
Conversation
🦋 Changeset detectedLatest commit: 0edf924 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
setEnvVariables(variables); | ||
|
||
if (fs.existsSync(variables.build_script_path)) { | ||
execSync(`. ${__dirname}/bash/build-setup.sh; . ${variables.build_script_path}`, { |
Check warning
Code scanning / CodeQL
Shell command built from environment values Medium
absolute path
ref: trunk | ||
file: /main.yml | ||
|
||
setup_10up_toolkit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of cloning 10up-toolking and installing it from scratch why not use npx 10up-toolkit project init
. npx
will use by default the latest version in npm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course we'd need to release it first to be able to test this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
100%. This will be removed once we release. Chicken and egg problem
build_plugins_and_themes: | ||
stage: build | ||
script: | ||
- ./10up-toolkit project create-payload $CI_COMMIT_REF_NAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npx --yes 10up-toolkit project create-payload $CI_COMMIT_REF_NAME
would make the previous stage to set up toolkit unnecessary as long as node is avaliable on the container.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome
No description provided.