Skip to content

chore(deps): update pnpm to v10.3.0 #1043

chore(deps): update pnpm to v10.3.0

chore(deps): update pnpm to v10.3.0 #1043

name: Build and publish
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
repository_dispatch:
jobs:
build:
name: ${{ github.ref == 'refs/heads/main' && 'Publish' || 'Test build' }}
runs-on: self-hosted
environment: ${{ github.ref == 'refs/heads/main' && 'production' || '' }}
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
run_install: false
- name: Set up node
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: ${{ github.ref == 'refs/heads/main' && 'Build ans publish' || 'Test worker build' }}
uses: cloudflare/wrangler-action@392082e81ffbcb9ebdde27400634aa004b35ea37 # v3.14.0
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: ${{ github.ref == 'refs/heads/main' && 'deploy' || 'deploy --dry-run' }}