-
Notifications
You must be signed in to change notification settings - Fork 1
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
ci: check for unstaged files #1685
base: main
Are you sure you want to change the base?
Conversation
68a00cc
to
c3544d7
Compare
.tool-versions
Outdated
@@ -1,3 +1,3 @@ | |||
ruby 3.0.0 | |||
nodejs lts-erbium | |||
nodejs 12.22.12 |
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.
So this was necessary for the Github action marocchino/tool-versions-action
to work. However it is now considered bad practice to set codename versions: https://github.com/asdf-vm/asdf-nodejs#partial-and-codename-versions
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.
$ asdf nodejs resolve lts-erbium --latest-available
12.22.12
When you do the following ``` $ asdf install $ npm --version 6.14.16 ``` and run: ``` npm install ``` ~then you get a changed `package-lock.json`.~ It is good practice to always check in lock files into version control. On CI we run `npm install` (among other things). If we make sure that we do not leave any updates files, this ensures we always commit our lock files. EDIT: You don't, my fault. But it does not hurt to merge this PR anyways.
c3544d7
to
d6216db
Compare
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.
I have to admit I don't understand what the purpose of these changes are.
Could you please update the description as it is now outdated and it seems has nothing to do with these changes.
When you do the following
and run:
then you get a changedpackage-lock.json
.It is good practice to always check in lock files into version control.
On CI we run
npm install
(among other things). If we make sure that wedo not leave any updates files, this ensures we always commit our lock
files.
EDIT: You don't, my fault. But it does not hurt to merge this PR anyways.