Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/pr_preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow publishes a preview build of every pull request to pkg.pr.new, so that
# reviewers can install the CLI from a pull request without a local checkout.

name: PR preview

on:
pull_request:

permissions: {}

env:
LATEST_NODE_VERSION: 24
APIFY_CLI_DISABLE_TELEMETRY: 1

concurrency:
cancel-in-progress: true
group: pr-preview-${{ github.ref }}

jobs:
publish:
# No previews from forks, and a dependency bump never needs one.
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.type != 'Bot' }}

name: Publish preview

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Use Node.js ${{ env.LATEST_NODE_VERSION }}
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.LATEST_NODE_VERSION }}

- name: Install pnpm and dependencies
uses: apify/actions/pnpm-install@v1.6.2

# `pnpm pack` runs the `prepack` script, which builds the CLI.
- name: Publish to pkg.pr.new
run: pnpm exec pkg-pr-new publish --pnpm --bin --comment=update
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
"oxfmt": "0.73.0",
"oxlint": "1.89.0",
"oxlint-tsgolint": "0.22.1",
"pkg-pr-new": "0.0.91",
"rimraf": "~6.1.3",
"tsdown": "^0.23.0",
"tsx": "^4.23.13",
Expand Down
18 changes: 12 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading