Skip to content

Commit

Permalink
tools: move update-eslint.sh to dep_updaters/
Browse files Browse the repository at this point in the history
Move the `update-eslint.sh` script to the `dep_updaters/` directory.

PR-URL: nodejs#46088
Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
lpinca authored and RafaelGSS committed Jan 17, 2023
1 parent 2f25518 commit 0e6a6bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ jobs:
subsystem: tools
label: tools
run: |
cd tools
NEW_VERSION=$(npm view eslint dist-tags.latest)
CURRENT_VERSION=$(node -p "require('./node_modules/eslint/package.json').version")
CURRENT_VERSION=$(node -p "require('./tools/node_modules/eslint/package.json').version")
if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
./update-eslint.sh
./tools/dep_updaters/update-eslint.sh
fi
- id: corepack
subsystem: deps
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
set -ex

cd "$( dirname "$0" )" || exit
rm -rf node_modules/eslint
rm -rf ../node_modules/eslint
(
rm -rf eslint-tmp
mkdir eslint-tmp
cd eslint-tmp || exit

ROOT="$PWD/../.."
ROOT="$PWD/../../.."
[ -z "$NODE" ] && NODE="$ROOT/out/Release/node"
[ -x "$NODE" ] || NODE=$(command -v node)
NPM="$ROOT/deps/npm/bin/npm-cli.js"
Expand Down Expand Up @@ -61,5 +61,5 @@ rm -rf node_modules/eslint
find node_modules -name 'README*' -exec rm {} \;
)

mv eslint-tmp/node_modules/eslint node_modules/eslint
mv eslint-tmp/node_modules/eslint ../node_modules/eslint
rm -rf eslint-tmp/

0 comments on commit 0e6a6bd

Please sign in to comment.