Skip to content

Commit 8b0a703

Browse files
committed
chore(release): fix release script
1. Update npmrc and regen package-lock.json to remove resolved URL (airlock compatible) 2. Add google-artifactregistry-auth as dev dependency required for builds and release scripts
1 parent f7b68d6 commit 8b0a703

4 files changed

Lines changed: 1812 additions & 2204 deletions

File tree

.kokoro/build.sh

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,17 @@ registry=https://us-npm.pkg.dev/artifact-foundry-prod/npm-3p-trusted/
1717
EOF
1818
cp .npmrc "$HOME/.npmrc"
1919

20-
### Build all package.json
20+
### Build root package
2121
ARTIFACTS="${KOKORO_ARTIFACTS_DIR}/artifacts"
22-
mkdir "${ARTIFACTS}"
23-
24-
readarray -t package_jsons < <(find "." -type d -name "node_modules" -prune -o -name "package.json" -print)
25-
for package_file in "${package_jsons[@]}"; do
26-
echo "Building package ${package_file}"
27-
package_dir="$(dirname "${package_file}")"
28-
pushd "${package_dir}"
29-
npm ci
30-
# npm pack and npm publish needs to be distinct steps to ensure the
31-
# artifacts will be stored locally for attestation generation.
32-
npm pack --pack-destination="${ARTIFACTS}"
33-
popd
34-
done
22+
mkdir -p "${ARTIFACTS}"
23+
24+
echo "Building root package"
25+
npm ci
26+
# npm pack and npm publish needs to be distinct steps to ensure the
27+
# artifacts will be stored locally for attestation generation.
28+
npm pack --pack-destination="${ARTIFACTS}"
29+
30+
3531

3632
### Authenticate to OSS Exit Gate
3733
# Replace default registry with OSS Exit Gate

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
omit-lockfile-registry-resolved=true

0 commit comments

Comments
 (0)