Merge pull request #32 from depot/dependabot/npm_and_yarn/hono-3.11.7 #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: {} | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
concurrency: build | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8.x.x | |
- name: Install node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Install depot | |
uses: depot/setup-action@v1 | |
with: | |
oidc: true | |
- name: Authenticate with Google Cloud | |
uses: google-github-actions/auth@v1 | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
- name: Setup SSH agent | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.HUGGING_FACE_SSH_KEY }} | |
- name: Set up gcloud CLI | |
uses: google-github-actions/setup-gcloud@v1 | |
- name: Authenticate with Artifact Registry | |
run: gcloud auth configure-docker us-docker.pkg.dev | |
- name: Build images | |
run: pnpm build-all |