File tree Expand file tree Collapse file tree 6 files changed +49
-32
lines changed
Expand file tree Collapse file tree 6 files changed +49
-32
lines changed Original file line number Diff line number Diff line change 1616 with :
1717 version : ^10.0.0
1818 - run : node --version
19+ - run : npm run preinstall-deps
1920 - run : ci/run_conditional_tests.sh
2021 name : Run unit tests
2122 env :
2930 - uses : actions/setup-node@v4
3031 with :
3132 node-version : 18
33+ - run : npm run preinstall-deps
3234 - run : npm install --engine-strict
3335 - run : npm test
3436 env :
4042 - uses : actions/setup-node@v4
4143 with :
4244 node-version : 18
45+ - run : npm run preinstall-deps
4346 - run : npm install
4447 - run : npm run lint
4548 docs :
4952 - uses : actions/setup-node@v4
5053 with :
5154 node-version : 18
55+ - run : npm run preinstall-deps
5256 - run : npm install
5357 - run : npm run docs
5458 - uses : JustinBeckwith/linkinator-action@v1
Original file line number Diff line number Diff line change 1515 with :
1616 version : ^10.0.0
1717 - run : node --version
18+ - run : npm run preinstall-deps
1819 - run : npm i && ci/run_conditional_tests.sh
1920 name : Run unit tests
2021 env :
2728 - uses : actions/setup-node@v4
2829 with :
2930 node-version : 18
31+ - run : npm run preinstall-deps
3032 - run : npm install
3133 - run : npm run lint
3234 docs :
3638 - uses : actions/setup-node@v4
3739 with :
3840 node-version : 18
41+ - run : npm run preinstall-deps
3942 - run : npm install
4043 - run : npm run docs
4144 - uses : JustinBeckwith/linkinator-action@v1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ #
3+ # A script to install dependencies for specified packages in order.
4+
5+ # Exit on any error.
6+ set -eo pipefail
7+
8+ echo " Installing dependencies in order..."
9+
10+ # Define the packages to install in the desired order.
11+ # These will be installed from the npm registry.
12+ declare -a packages=(
13+ " jsdoc-fresh"
14+ " pack-n-play"
15+ " jsdoc-region-tag"
16+ " gcp-metadata"
17+ )
18+
19+ for package in " ${packages[@]} " ; do
20+ echo " --- Installing $package ---"
21+ npm install --workspace=" $package "
22+ done
23+
24+ echo " All specified dependencies installed successfully."
Original file line number Diff line number Diff line change 1616 "url" : " https://github.com/googleapis/google-cloud-node-core/issues"
1717 },
1818 "scripts" : {
19+ "preinstall-deps" : " ./bin/install-deps.sh" ,
1920 "test" : " npm test --ws" ,
2021 "samples-test" : " npm run samples-test --ws" ,
2122 "system-test" : " npm run system-test --ws" ,
2728 "workspaces" : [
2829 " dev-packages/*" ,
2930 " packages/*"
30- ]
31+ ],
32+ "dependencies" : {
33+ "gaxios" : " ^7.1.2" ,
34+ "gcp-metadata" : " ^8.1.1" ,
35+ "jsdoc-fresh" : " ^5.0.2" ,
36+ "jsdoc-region-tag" : " ^4.0.1" ,
37+ "pack-n-play" : " ^4.2.1"
38+ }
3139}
You can’t perform that action at this time.
0 commit comments