Compare commits

...

3 Commits

Author SHA1 Message Date
Jordan Harband
cb49d3b1dd
[Tests] ensure node can be found by npm 2024-11-23 10:12:26 -10:00
Jordan Harband
384118263d
[Tests] use a newer node version for this test to avoid flakiness 2024-11-22 13:15:01 -10:00
Jordan Harband
f0ea7b8e56
[actions] TOC: use latest LTS node 2024-11-22 21:44:36 -10:00
2 changed files with 4 additions and 3 deletions

View File

@ -20,6 +20,7 @@ jobs:
allowed-endpoints:
github.com:443
registry.npmjs.org:443
api.github.com:443
- uses: actions/checkout@v4
with:
# https://github.com/actions/checkout/issues/217#issue-599945005
@ -30,7 +31,7 @@ jobs:
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: 'lts/*'
- run: npm install
- run: npm run doctoc
- name: commit changes

View File

@ -6,7 +6,7 @@ die () { echo "$@" ; exit 1; }
\. ../../../nvm.sh
# Version to install/uninstall
NVM_TEST_VERSION=5.10.1
NVM_TEST_VERSION=15.5.0
# Make sure it's not already here
[ -e ../../../$NVM_TEST_VERSION ] && rm -R ../../../$NVM_TEST_VERSION
@ -19,7 +19,7 @@ nvm ls | grep "$NVM_TEST_VERSION" || die "Failed to install node"
# Install global module as root
npm_path=$(which npm)
sudo -n "$npm_path" install jspm@'<2' -g || die 'either sudo failed, or `npm install jspm -g` failed`'
PATH="${PATH}" sudo -n "$npm_path" install jspm@'<2' -g || die 'either sudo failed, or `npm install jspm -g` failed`'
# Switch to another version so we can uninstall
nvm use 0.12.7