Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
1f82324
feat: PNPM workspace
bshaffer Jul 25, 2026
e1435cf
update artifacts from tests triggered by file changes
bshaffer Jul 27, 2026
addcf5e
docs: update CONTRIBUTING.md files to use pnpm
bshaffer Jul 27, 2026
1a907dd
feat: PNPM workspace
bshaffer Jul 25, 2026
6b4261a
update artifacts from tests triggered by file changes
bshaffer Jul 27, 2026
cc02a2c
docs: update CONTRIBUTING.md files to use pnpm
bshaffer Jul 27, 2026
71e8dfe
enforce pnpm as the strict package manager in package.json
bshaffer Jul 27, 2026
ce2a761
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jul 27, 2026
f89b645
Merge branch 'pnpm' of https://github.com/googleapis/google-cloud-nod…
gcf-owl-bot[bot] Jul 27, 2026
61078e3
update workflows to use root package,json for pnpm version
bshaffer Jul 27, 2026
f3c1766
changes from gemini code review
bshaffer Jul 27, 2026
16e2c24
fix tests
bshaffer Jul 27, 2026
aa6413e
fix pnpm install on github ci
bshaffer Jul 27, 2026
8d0e3b8
use pnpm install --filter to prevent CI timeouts
bshaffer Jul 27, 2026
3597303
fix(deps): remove global override for brace-expansion to avoid breaki…
bshaffer Jul 27, 2026
ff19c45
fix(ci): use pnpm install in remaining workflows and fix windows pres…
bshaffer Jul 28, 2026
95c24ff
fix(workspace): add core/* to pnpm-workspace to ensure core/common de…
bshaffer Jul 28, 2026
7b40b70
fix(ci): fix pnpm run --if-present flag position
bshaffer Jul 28, 2026
3d0168d
chore: bump mocha to v11 in node-bootstrap-container to fix tests
bshaffer Jul 28, 2026
1f08b72
fix(ci): suppress deprecation warnings during tests
bshaffer Jul 28, 2026
b51905c
chore: regenerate protobuf client files and suppress test warnings
bshaffer Jul 28, 2026
beb227b
Merge branch 'main' into pnpm
bshaffer Jul 28, 2026
b90682a
fix(deps): remove restrictive gaxios resolution to fix export errors
bshaffer Jul 28, 2026
a5812ed
now blindly trying to fix tests
bshaffer Jul 28, 2026
e9eff73
fix(lint): fix workspace linter for pnpm strict mode and allow defaul…
bshaffer Jul 28, 2026
42c8d1a
fix(ci): fix typescript errors, mocha crashes, and unexported package…
bshaffer Jul 28, 2026
8435cf7
fix(ci): use cross-env for NODE_NO_WARNINGS in bootstrap container tests
bshaffer Jul 28, 2026
a9ec030
continuing to fix tests
bshaffer Jul 28, 2026
196a670
remove pnpm.overrides and fixes unit tests
bshaffer Jul 28, 2026
2ba2310
remove pnpm overrides from the root
bshaffer Jul 28, 2026
b77814c
chore: fix zizmor hash pins and storage tests throw-deprecation
bshaffer Jul 29, 2026
84c04df
Merge main and resolve conflicts in generated protos
bshaffer Jul 29, 2026
d7eb756
chore: update kokoro scripts to use pnpm
bshaffer Jul 29, 2026
c90ceee
fix: avoid prepare script circular dependencies
bshaffer Jul 29, 2026
ad6a7f5
fix: correct tag version format in discovery.yaml
bshaffer Jul 29, 2026
1b51eb0
Merge main
bshaffer Jul 29, 2026
fcc7d0e
Restore package.json dependencies that were incorrectly updated to wo…
bshaffer Jul 29, 2026
240f17d
Restore handwritten/storage/package.json to original versions; keep c…
bshaffer Jul 29, 2026
af304e8
Merge origin/main to resolve conflicts
bshaffer Jul 29, 2026
385386f
fix(ci): fix punycode deprecation and octokit esm in node-bootstrap-c…
bshaffer Jul 29, 2026
1c85844
chore: update pnpm-lock.yaml for node-bootstrap-container fix
bshaffer Jul 29, 2026
5da7791
feat(ci): run unit-tests in parallel to speed them up
bshaffer Jul 29, 2026
0d9eb53
chore(ci): reduce unit-test output due to log truncation
bshaffer Jul 29, 2026
6a14237
chore(ci): rename conformance tests for clarity
bshaffer Jul 29, 2026
740552b
chore: run all ci tests
bshaffer Jul 29, 2026
3d37a2c
fix(ci): failing unit-tests
bshaffer Jul 29, 2026
24763d2
feat(ci): add matrix sharding
bshaffer Jul 29, 2026
0c5f19a
fix bash syntax error, better job names
bshaffer Jul 29, 2026
5b0a4a4
reduce fetch-depth for github actions runs, remove concurrency
bshaffer Jul 29, 2026
37e6bcf
remove c8 text output
bshaffer Jul 29, 2026
dd49119
feat: add conditional sharding using DRY_RUN_SHARDS envvar
bshaffer Jul 29, 2026
90754d4
fix(ci): common and pack-and-play tests
bshaffer Jul 29, 2026
e42dd27
Revert "remove c8 text output" - we will handle this in a future PR
bshaffer Jul 29, 2026
f12544e
add parent job for unit test shards (by node version), remove firesto…
bshaffer Jul 29, 2026
9d358d3
add dummy shards and extend test timeout for windows
bshaffer Jul 30, 2026
127374f
improve bigtable unit-test performance
bshaffer Jul 30, 2026
9ebd7db
increase timeout to 10 minutes for windows tests
bshaffer Jul 30, 2026
ce4850e
fix bigtable-system-tests
bshaffer Jul 30, 2026
cb703c9
skip pack-n-play tests on windows
bshaffer Jul 30, 2026
da39ebe
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jul 30, 2026
d01121e
suggestions from gemini review
bshaffer Jul 30, 2026
b4d53f1
address another round of gemini code review
bshaffer Jul 30, 2026
3478ae0
Merge branch 'improve-test-performance' into pnpm
bshaffer Jul 30, 2026
17468eb
remove all c8 text exporters
bshaffer Jul 30, 2026
48b087e
fix(ci): fix workspace glob, linter fixture paths, license header, an…
bshaffer Jul 30, 2026
3e33b45
Merge remote-tracking branch 'origin/main' into pnpm
bshaffer Jul 30, 2026
f927526
chore: sync lockfile with newly onboarded agentidentity package and r…
bshaffer Jul 30, 2026
d13a28a
chore(generator): remove text reporter from generator baselines
bshaffer Jul 30, 2026
b5f1f8d
fix(ci): disable experimental-require-module in NODE_OPTIONS to fix N…
bshaffer Jul 30, 2026
3ab7853
fix(bigtable): fix testproxy invocation and remove redundant install …
bshaffer Jul 30, 2026
f20a08a
Merge remote-tracking branch 'origin/main' into pnpm
bshaffer Jul 30, 2026
561f513
fix(pack-n-play): use semver range instead of workspace:* in test fix…
bshaffer Jul 30, 2026
9046e9d
fix: override yargs to ^17.7.2 to fix Node 26 require in mocha and c8
bshaffer Jul 30, 2026
c83cf10
test(storage): fix mockAuthorizeRequest and expected url in resumable…
bshaffer Jul 30, 2026
c8ea849
fix(tools): properly invoke main entrypoint in CLI bin wrapper scripts
bshaffer Jul 30, 2026
8e94961
feat: add turbo to cache pnpm compile
bshaffer Jul 30, 2026
f76e807
add missing turbo.json
bshaffer Jul 30, 2026
01ecba7
add concurrency to windows tests
bshaffer Jul 30, 2026
ccd5d79
increase pack-n-play timeout
bshaffer Jul 30, 2026
46191a0
fix: gracefully skip bigtable system tests on quota exhaustion
bshaffer Jul 31, 2026
9a49f29
chore: update github action hashes for zizmor
bshaffer Jul 31, 2026
a11b38e
chore: pin actions/cache to fix zizmor
bshaffer Jul 31, 2026
714d284
chore: update actions/cache to correct v4 tag hash
bshaffer Jul 31, 2026
409cb9d
chore: remove test-dep.js
bshaffer Jul 31, 2026
5887ffd
test: skip on quota exhaustion during cleanup
bshaffer Jul 31, 2026
f7d9329
chore: fix github actions hash pins for zizmor
bshaffer Jul 31, 2026
6c89a95
chore: trigger CI
bshaffer Jul 31, 2026
cb9eea4
Merge branch 'main' into pnpm
bshaffer Aug 13, 2026
98fd537
fix(ci): update pnpm action setup, fix node-version in presubmit, and…
bshaffer Aug 13, 2026
cb3482d
chore: move .nycrc, Contributing.md, and .gitignore changes to follow…
bshaffer Aug 13, 2026
f61b961
chore: move remaining Contributing.md changes to follow-up PR
bshaffer Aug 13, 2026
1ee52a6
style: apply linter auto-fixes in storage resumable upload test
bshaffer Aug 13, 2026
12ebfd2
fix(ci): cap turbo compilation concurrency to prevent Windows heap ex…
bshaffer Aug 13, 2026
6e2de67
fix: set turbo concurrency to 4 in package.json
bshaffer Aug 13, 2026
f65d7d0
fix(gax): remove nested npm i calls in prepare scripts
bshaffer Aug 13, 2026
819f05d
test(bigtable): use dynamic port in MockServer to prevent port collis…
bshaffer Aug 13, 2026
1d97a1f
test(bigtable): increase timeout for streaming readrows tests to prev…
bshaffer Aug 13, 2026
ecd5915
fix: correct pnpm install indentation across kokoro scripts
bshaffer Aug 13, 2026
d795bd9
chore: restore engines.node >=22 in dev-packages
bshaffer Aug 13, 2026
6858590
Merge remote-tracking branch 'origin/main' into pnpm
bshaffer Aug 14, 2026
53447c8
chore: update pnpm-lock.yaml with packages from main
bshaffer Aug 14, 2026
3d6b073
fix: correctly check directory prefix for windows test exemptions
bshaffer Aug 14, 2026
a78756e
chore: revert non-essential pnpm.overrides removals from package.json…
bshaffer Aug 14, 2026
6a3e656
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Aug 14, 2026
93fef4a
Merge branch 'main' into pnpm
bshaffer Aug 27, 2026
a23dd28
fix(ci): sync pnpm-lock.yaml, restore storage-control protos, and fix…
bshaffer Aug 27, 2026
60349f7
chore: update .nycrc, Contributing.md, .gitignore, and package.json p…
bshaffer Aug 13, 2026
269e759
docs: add pnpm dependency management evaluation
bshaffer Aug 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 12 additions & 1 deletion .github/actions/run-unit-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,19 @@ runs:
with:
node-version: ${{ inputs.node-version }}
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Install Workspace Dependencies (Frozen Lockfile)
run: pnpm install --frozen-lockfile --ignore-scripts
shell: bash
- name: Cache Turborepo
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
version: ^10.0.0
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Compile Workspace (Turborepo Caching)
run: pnpm run compile
shell: bash
- run: node --version
shell: bash
- name: Run unit tests
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/bigtable-conformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
with:
go-version: '>=1.20.2'
- run: chmod +x .kokoro/conformance.sh
- run: npm install
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- run: pnpm install --frozen-lockfile --ignore-scripts
- run: pnpm --filter ...{handwritten/bigtable} run --if-present compile
- run: go version
- run: .kokoro/conformance.sh
8 changes: 6 additions & 2 deletions .github/workflows/continuous.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ jobs:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
version: ^7.0.0
node-version: ${{ matrix.node }}
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Install Workspace Dependencies (Frozen Lockfile)
run: pnpm install --frozen-lockfile --ignore-scripts
- run: node --version
- run: ci/run_conditional_tests.sh
name: Run unit tests
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/discovery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@ jobs:
contents: read
issues: write # Added for creating issues on failure
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
version: ^10.0.0

# Install all deps, including dev dependencies.
- run: cd handwritten/bigquery && pnpm install
- run: cd handwritten/bigquery && pnpm install --filter .
# Generate types
- run: cd handwritten/bigquery && pnpm run types
# Fix formatting (scoped to generated types.d.ts and clean up untracked pnpm-lock.yaml)
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/generation_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ jobs:
- name: Setup pnpm
if: steps.changes.outputs.librarian == 'true' || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
version: ^7.0.0
- name: Install tools
if: steps.changes.outputs.librarian == 'true' || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
run: librarian install
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/mandatory-conformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
with:
go-version: '>=1.20.2'
- run: chmod +x .kokoro/mandatory-conformance.sh
- run: npm install
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- run: pnpm install --frozen-lockfile --ignore-scripts
- run: pnpm --filter ...{handwritten/bigtable} run --if-present compile
- run: go version
- run: .kokoro/mandatory-conformance.sh
13 changes: 12 additions & 1 deletion .github/workflows/presubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,18 @@ jobs:
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: 24
- run: npm install
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Install Workspace Dependencies (Frozen Lockfile)
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Cache Turborepo
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Compile Workspace (Turborepo Caching)
run: pnpm run compile
- run: node ./bin/linter.mjs --strict
name: Run monorepo linter
env:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/storage-conformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ jobs:
conformance-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
node-version: 18
- run: node --version
- run: cd handwritten/storage && npm install
- run: cd handwritten/storage && npm run conformance-test
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- run: pnpm install --frozen-lockfile --ignore-scripts
- run: pnpm --filter ...{handwritten/storage} run --if-present compile
- run: cd handwritten/storage && pnpm run conformance-test
2 changes: 1 addition & 1 deletion .github/workflows/system-tests-against-emulator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# - 9020:9020

# steps:
# - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
# - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
# - uses: actions/setup-node@v5
# with:
# node-version: 22
Expand Down
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ packages/*/AUTHORS
packages/*/CONTRIBUTORS
packages/*/COPYING
package-lock.json
yarn.lock
bun.lockb
bun.lock
**/pnpm-lock.yaml
!/pnpm-lock.yaml
__pycache__
packages/*/pnpm-lock.yaml
containers/*/pnpm-lock.yaml
**/docs.metadata
**/backstory/
*.tsbuildinfo
.turbo
2 changes: 1 addition & 1 deletion .mocharc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
const config = {
"enable-source-maps": true,
"throw-deprecation": true,
"timeout": 10000,
"timeout": 60000,
"parallel": true,
"recursive": true
}
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
link-workspace-packages=false
4 changes: 3 additions & 1 deletion .nycrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"report-dir": "./.coverage",
"reporter": ["text", "lcov"],
"reporter": [
"lcov"
],
"exclude": [
"**/*-test",
"**/.coverage",
Expand Down
25 changes: 0 additions & 25 deletions .pnpmfile.cjs

This file was deleted.

6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,14 +342,14 @@ with an issue in this repository.

1. Install dependencies:

npm install
pnpm install

1. Run the tests:

npm test
pnpm run test

1. Lint (and maybe fix) any changes:

npm run fix
pnpm run fix

[setup]: https://cloud.google.com/nodejs/docs/setup
4 changes: 2 additions & 2 deletions bin/linter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function getChangedFiles() {
return output
.split('\n')
.map(f => f.trim())
.filter(f => f.length > 0 && existsSync(f));
.filter(f => f.length > 0 && existsSync(f) && !f.includes('/fixtures/'));
} catch {
// Continue to the next fallback ref
}
Expand All @@ -167,7 +167,7 @@ function getChangedFiles() {
return output
.split('\n')
.map(f => f.trim())
.filter(f => f.length > 0 && existsSync(f));
.filter(f => f.length > 0 && existsSync(f) && !f.includes('/fixtures/'));
} catch {
return [];
}
Expand Down
4 changes: 2 additions & 2 deletions ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN curl https://github.com/googleapis/repo-automation-bots/releases/download/fl
-o /bin/flakybot -s -L \
&& chmod +x /bin/flakybot

ENV PNPM_VERSION=7.32.2
ENV PNPM_VERSION=10.0.0
RUN npm install -g pnpm@${PNPM_VERSION}

FROM node:${NODE_VERSION}-slim
Expand All @@ -44,7 +44,7 @@ COPY --from=build /bin/flakybot /bin/flakybot
RUN apt-get update && apt-get install -y git bash python3 jq \
&& ln -s /usr/bin/python3 /usr/bin/python

ENV PNPM_VERSION=7.32.2
ENV PNPM_VERSION=10.0.0
RUN npm install -g pnpm@${PNPM_VERSION}

ENV PATH=/usr/local/gcloud/google-cloud-sdk/bin:$PATH
9 changes: 8 additions & 1 deletion ci/run_conditional_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,14 @@ for subdir in ${subdirs[@]}; do

# Our CI uses Git Bash on Windows to execute this script, which returns "msys" or "cygwin" for OSTYPE.
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" || "$OS" == "Windows_NT" ]]; then
if [[ "${windows_exempt_tests}" =~ "${d}" ]]; then
is_exempt=false
for exempt in ${windows_exempt_tests}; do
if [[ "${d}" == "${exempt}"* ]]; then
is_exempt=true
break
fi
done
if [[ "${is_exempt}" == "true" ]]; then
echo "Skipping ${d} on Windows (in exemption list)"
continue
fi
Expand Down
1 change: 0 additions & 1 deletion core/common/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ system-test/*key.json
*-lock.js*
build/
.vscode
package-lock.json
__pycache__
5 changes: 3 additions & 2 deletions core/common/.kokoro/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export NPM_CONFIG_PREFIX=${HOME}/.npm-global

cd $(dirname $0)/..

npm install
npm install -g pnpm@9
pnpm install

npm run docs-test
pnpm run docs-test
8 changes: 5 additions & 3 deletions core/common/.kokoro/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ export NPM_CONFIG_PREFIX=${HOME}/.npm-global

cd $(dirname $0)/..

npm install
npm install -g pnpm@9
pnpm install

# Install and link samples
if [ -f samples/package.json ]; then
cd samples/
npm link ../
npm install
npm install -g pnpm@9
pnpm install
cd ..
fi

npm run lint
pnpm run lint
3 changes: 2 additions & 1 deletion core/common/.kokoro/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ cd $(dirname $0)/..
NPM_TOKEN=$(cat $KOKORO_KEYSTORE_DIR/73713_google-cloud-npm-token-1)
echo "//wombat-dressing-room.appspot.com/:_authToken=${NPM_TOKEN}" > ~/.npmrc

npm install
npm install -g pnpm@9
pnpm install
npm pack .
# npm provides no way to specify, observe, or predict the name of the tarball
# file it generates. We have to look in the current directory for the freshest
Expand Down
6 changes: 4 additions & 2 deletions core/common/.kokoro/release/docs-devsite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ if [[ -z "$CREDENTIALS" ]]; then
cd $(dirname $0)/../..
fi

npm install
npm install --no-save @google-cloud/cloud-rad@^0.4.0
npm install -g pnpm@9
pnpm install
npm install -g pnpm@9
pnpm install --no-save @google-cloud/cloud-rad@^0.4.0
# publish docs to devsite
npx @google-cloud/cloud-rad . cloud-rad
5 changes: 3 additions & 2 deletions core/common/.kokoro/release/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ if [[ -z "$CREDENTIALS" ]]; then
export PATH="$PATH:${NPM_CONFIG_PREFIX}/bin"
cd $(dirname $0)/../..
fi
npm install
npm run docs
npm install -g pnpm@9
pnpm install
pnpm run docs

# create docs.metadata, based on package.json and .repo-metadata.json.
npm i json@9.0.6 -g
Expand Down
8 changes: 5 additions & 3 deletions core/common/.kokoro/samples-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ if [ -f .kokoro/pre-samples-test.sh ]; then
fi

if [ -f samples/package.json ]; then
npm install
npm install -g pnpm@9
pnpm install

# Install and link samples
cd samples/
npm link ../
npm install
npm install -g pnpm@9
pnpm install
cd ..
# If tests are running against main branch, configure flakybot
# to open issues on failures:
Expand All @@ -53,7 +55,7 @@ if [ -f samples/package.json ]; then
trap cleanup EXIT HUP
fi

npm run samples-test
pnpm run samples-test
fi

# codecov combines coverage across integration and unit tests. Include
Expand Down
5 changes: 3 additions & 2 deletions core/common/.kokoro/system-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ if [ -f .kokoro/pre-system-test.sh ]; then
set -x
fi

npm install
npm install -g pnpm@9
pnpm install

# If tests are running against main branch, configure flakybot
# to open issues on failures:
Expand All @@ -45,7 +46,7 @@ if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]] || [[ $KOKORO_BUILD_ART
trap cleanup EXIT HUP
fi

npm run system-test
pnpm run system-test

# codecov combines coverage across integration and unit tests. Include
# the logic below for any environment you wish to collect coverage for:
Expand Down
Loading
Loading