Skip to content

Commit

Permalink
ci: use checkout action for PR build
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Oct 29, 2024
1 parent 84305de commit 3def849
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/npm-publish-from-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: npm publish from PR
on:
workflow_dispatch:
inputs:
source:
description: 'source ref: `google/zx/main/0cba...f9`'
# source:
# description: 'source ref: `google/zx/main/0cba...f9`'
repo:
description: 'source gh repo, like `google/zx`'
branch:
description: 'target branch'
# branch:
# description: 'target branch'
commit:
description: 'commit id'
# buildCmd:
# cmd:
# description: 'build cmd'
# default: 'npm ci && npm run build'

Expand All @@ -24,10 +24,11 @@ jobs:
with:
node-version: 23

- name: Fetch remote source
run: NODE_OPTIONS="--experimental-strip-types" npx zx@latest https://raw.githubusercontent.com/webpod/zurk/refs/heads/main/src/scripts/build-from-remote.mts
env:
CTX: ${{ toJSON(github.event.inputs) }}
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ github.event.inputs.repo }}
ref: ${{ github.event.inputs.commit }}

- name: Build
run: |
Expand Down

0 comments on commit 3def849

Please sign in to comment.