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

Always checkout JavaScript environment from main #3554

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

handrews
Copy link
Member

@handrews handrews commented Feb 7, 2024

Fixes #3542

Workflows run from the workflow file on main, even when they run on branches. But just running "npm i" or a command like "npx" that also installs packages uses the package.json file from the branch.

Rather than attempt to keep the branch package files up-to-date (which would quadruple the number of update PRs, adding three branch update PRs for every dependabot PR), let's just checkout the package.json from main whenver we run. The other workflows only run on main - these two are the ones that run on branches.

@handrews handrews requested review from a team as code owners February 7, 2024 21:39
@handrews handrews added the script Pull requests that update Bash or JavaScript code label Feb 7, 2024
@handrews handrews marked this pull request as draft February 7, 2024 21:51
Workflows run from the workflow file on main, even when they
run on branches.  But just running "npm i" or a command like "npx"
that also installs packages uses the package.json file from
the branch.

Rather than attempt to keep the branch package files up-to-date
(which would _quadruple_ the number of update PRs, adding three
branch update PRs for every dependabot PR), let's just checkout
the package.json from main whenver we run.  The other workflows
only run on main - these two are the ones that run on branches.
@earth2marsh
Copy link
Member

merging as discussed on today's TDC call

@earth2marsh earth2marsh merged commit b175961 into OAI:main Feb 8, 2024
2 checks passed
@handrews handrews deleted the use-main-js branch February 8, 2024 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
script Pull requests that update Bash or JavaScript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vallidate-markdown failure: How should we maintain scripts across branches?
3 participants