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

Fix Node in Actions on Windows #280

Merged
merged 2 commits into from
Feb 25, 2022
Merged

Fix Node in Actions on Windows #280

merged 2 commits into from
Feb 25, 2022

Conversation

jablko
Copy link
Contributor

@jablko jablko commented Feb 17, 2022

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

There's an apparent conflict between new versions of Node.js (? 17.5.0)/npm (? 8.4.1) and old versions of nvm-windows (? 1.1.7):

I didn't get to the absolute bottom of it because https://github.com/dcodeIO/setup-node-nvm hasn't been updated in a while and describes itself as merely a placeholder until https://github.com/actions/setup-node supports aliases, which it now seems to --- except for a node alias: actions/setup-node#279

Additionally there's a problem installing npm globally on Windows when starting below version 7.5.4: npm/cli#4341 (comment)

So, what I did in this PR is:

@github-actions github-actions bot added the 👋 phase/new Post is being triaged automatically label Feb 17, 2022
@github-actions

This comment has been minimized.

@codecov-commenter
Copy link

codecov-commenter commented Feb 17, 2022

Codecov Report

Merging #280 (6747d24) into main (773e561) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #280   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           73        73           
  Lines         8451      8451           
=========================================
  Hits          8451      8451           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 773e561...6747d24. Read the comment docs.

@github-actions github-actions bot added 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Feb 18, 2022
@jablko jablko force-pushed the patch-2 branch 2 times, most recently from 6106a51 to 941b2c4 Compare February 18, 2022 23:11
@@ -22,4 +25,4 @@ jobs:
- windows-latest
node:
- lts/erbium
- node
Copy link
Member

Choose a reason for hiding this comment

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

Only the change of this line should be enough? You should be able to skip all others. See unifiedjs/unified@6f6a5c2

Copy link
Contributor Author

@jablko jablko Feb 19, 2022

Choose a reason for hiding this comment

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

.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
Copy link
Member

@wooorm wooorm left a comment

Choose a reason for hiding this comment

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

Thanks for your patience Jack!

@wooorm wooorm added 🏗 area/tools This affects tooling and removed 🕸️ area/tests This affects tests labels Feb 25, 2022
@wooorm wooorm changed the title Fix CI: npm ERR! Unexpected token '.' Fix Node in Actions on Windows Feb 25, 2022
@wooorm wooorm merged commit 8e2a554 into remarkjs:main Feb 25, 2022
@wooorm wooorm added the 💪 phase/solved Post is done label Feb 25, 2022
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏗 area/tools This affects tooling 💪 phase/solved Post is done
Development

Successfully merging this pull request may close these issues.

4 participants