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: Freaze lockfile in CI #135

Merged
merged 3 commits into from
Feb 15, 2024
Merged

Conversation

timothee-LJN
Copy link
Contributor

issue

fixes #97

description

Instead of locking manually package version, I've added a flag --frozen-lockfile to GH actions.
According the docs this should have been the case since the command was run in CI already. So maybe there is something we did wrong or CI=TRUE was not explicit enough?

--frozen-lockfile flag is equivalent to npm ci : https://docs.npmjs.com/cli/v10/commands/npm-ci

@timothee-LJN timothee-LJN added the enhancement New feature or request label Feb 12, 2024
@timothee-LJN timothee-LJN self-assigned this Feb 12, 2024
@timothee-LJN
Copy link
Contributor Author

@jrabary
Checks are unsuccessful since pnpm-lock.yaml is in gitignore hence not commited.
This does not seem to be a good practice:
https://pnpm.io/git#:~:text=You%20should%20always%20commit%20the,able%20to%20skip%20package%20resolution

Is there any reason why it like so?

@cpvannier cpvannier added s3 scope: ci Related to Pixano CI/CD actions and removed s3 labels Feb 14, 2024
@cpvannier cpvannier added this to the Pixano 0.5.0 milestone Feb 14, 2024
@cpvannier cpvannier added the priority: medium This item needs to be worked on soon label Feb 14, 2024
@jrabary
Copy link
Member

jrabary commented Feb 14, 2024

We can remove it from gitignore.

Copy link
Member

@cpvannier cpvannier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in PR title (Freaze > Freeze)

@timothee-LJN timothee-LJN merged commit f0146ab into develop Feb 15, 2024
5 checks passed
cpvannier pushed a commit that referenced this pull request Feb 15, 2024
* chore: Freaze lockfile in CI

* chore: Remove *lock.yaml from gitignore

* chore: Add pnpm-lock.yaml
@cpvannier cpvannier deleted the chore/lock-package-version branch February 27, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: medium This item needs to be worked on soon scope: ci Related to Pixano CI/CD actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lock package version use in CI
4 participants