Skip to content

chore(main): release 0.29.0 #7828

chore(main): release 0.29.0

chore(main): release 0.29.0 #7828

Workflow file for this run

# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Node.js
on: [push, pull_request, merge_group]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-24.04
# Presubmit jobs must complete within 5 minutes. See CONTRIBUTING.md.
timeout-minutes: 5
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- uses: ./.github/actions/setup-librarian
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: "22"
- name: "Set up pnpm via corepack"
run: |
corepack enable pnpm
corepack prepare pnpm@7.32.2 --activate
- name: "Install Node.js dependencies (resolve cache paths)"
id: tool-paths
run: |
echo "npm=$(npm config get prefix)" >> "$GITHUB_OUTPUT"
- name: "Checkout google-cloud-node"
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
repository: googleapis/google-cloud-node
path: google-cloud-node
depth: 1
sparse-checkout: |
librarian.yaml
sparse-checkout-cone-mode: false
persist-credentials: false
- name: "Install Node.js dependencies (restore cache)"
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
id: tools-cache
with:
path: |
${{ steps.tool-paths.outputs.npm }}
~/.cache/librarian
key: nodejs-tools-v4-${{ hashFiles('internal/config/**/*.go') }}-${{ hashFiles('google-cloud-node/librarian.yaml') }}
- name: "Install Node.js dependencies (run librarian install)"
if: steps.tools-cache.outputs.cache-hit != 'true'
run: librarian -v install nodejs
working-directory: google-cloud-node
- name: Run tests
run: go run ./tool/cmd/coverage ./internal/librarian/nodejs