build(deps): lock file maintenance #39
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 | |
pull_request: | |
merge_group: | |
schedule: | |
- cron: '0 1 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.ref_name }} | |
cancel-in-progress: true | |
env: | |
HUSKY: 0 | |
permissions: | |
contents: write | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- run: corepack enable | |
- run: pnpm install | |
- run: pnpm prettier | |
build: | |
needs: | |
- lint | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: | |
- x86_64 | |
- aarch64 | |
env: | |
ARCH: ${{ matrix.arch }} # build target, name required by binary-builder | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: binary-builder | |
uses: containerbase/internal-tools@61cdbfdb63e1ead978829d1c75ed36c0f3120512 # v3.3.12 | |
with: | |
command: binary-builder | |
dry-run: ${{github.ref_name != 'main'}} | |
token: ${{ secrets.GITHUB_TOKEN }} |