Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,16 @@ runs:
nvm install
nvm use
ADMIN_NPM_VERSION=$(npm -v)
npm install -g yarn
yarn install --network-concurrency 1
npm install --ignore-scripts -g yarn
yarn install --ignore-scripts --network-concurrency 1
cd ../../..
fi
nvm install
nvm use
if [[ $(npm -v) != $ADMIN_NPM_VERSION ]]; then
npm install -g yarn;
npm install --ignore-scripts -g yarn;
fi
yarn install --network-concurrency 1
yarn install --ignore-scripts --network-concurrency 1
if [[ $(cat package.json | jq -r '.scripts.build') != 'null' ]]; then
DIST_DIR=
if [[ -d client/dist ]]; then
Expand Down Expand Up @@ -347,7 +347,7 @@ runs:
# Swap to correct version and make sure yarn is installed
NPM_VERSION=$(cat vendor/silverstripe/documentation-lint/.nvmrc)
nvm install $NPM_VERSION && nvm use $NPM_VERSION
npm install --global yarn
npm install --ignore-scripts --global yarn
# Run the linting script
vendor/bin/doclint
echo "Passed"
Expand Down
Loading