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

chore(ci): package-lock is updated from separate job #28697

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Dec 13, 2023

After each release, we need to update the local package-lock.json dependencies. We do this via a npm install --package-lock-only command. However, this command can fail for reasons such as a connection timeout. When this happens, the package-lock files do not get updated.

The problem is this action is also done in the same job as generating the changelog and creating the GitHub release. This operations cannot be re-done. As a result, we cannot simply re-run this job and try updating the package-lock files again.

This PR changes the workflow to split the package-lock update out to its own job. In the event that this job fails, we can re-run only this job and leave the other jobs untouched.

@liamdebeasi liamdebeasi marked this pull request as ready for review December 13, 2023 15:29
@liamdebeasi liamdebeasi requested a review from a team as a code owner December 13, 2023 15:29
@liamdebeasi liamdebeasi requested review from sean-perkins and removed request for a team December 13, 2023 15:29
@liamdebeasi liamdebeasi requested a review from a team December 19, 2023 14:39
@liamdebeasi liamdebeasi added this pull request to the merge queue Dec 19, 2023
Merged via the queue into main with commit 5d3bf98 Dec 19, 2023
46 checks passed
@liamdebeasi liamdebeasi deleted the release-package-lock-2 branch December 19, 2023 16:54
github-merge-queue bot pushed a commit that referenced this pull request Jan 9, 2024
In #28697 I moved the
package-lock work to its own step to lets us re-run that if it fails.
However, I forgot to checkout the project files in that step, so there
was no `package-lock.json` file to update [resulting in an
error](https://github.com/ionic-team/ionic-framework/actions/runs/7398703880/job/20128761433).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants