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
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ on:
pull_request:
branches: [main]

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

jobs:
typescript:
name: TypeScript
runs-on: ubuntu-latest
runs-on: ${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || 'arc-runner-altimate-code' }}
timeout-minutes: 60
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

Expand Down Expand Up @@ -39,7 +44,8 @@ jobs:

lint:
name: Lint
runs-on: ubuntu-latest
runs-on: ${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || 'arc-runner-altimate-code' }}
timeout-minutes: 60
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

Expand All @@ -56,7 +62,8 @@ jobs:

python:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
runs-on: ${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || 'arc-runner-altimate-code' }}
timeout-minutes: 60
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ env:
jobs:
build:
name: Build (${{ matrix.os }})
runs-on: ubuntu-latest
runs-on: arc-runner-altimate-code
timeout-minutes: 60
permissions:
contents: read
strategy:
Expand Down Expand Up @@ -58,7 +59,8 @@ jobs:
publish-npm:
name: Publish to npm
needs: build
runs-on: ubuntu-latest
runs-on: arc-runner-altimate-code
timeout-minutes: 60
permissions:
contents: read
steps:
Expand Down Expand Up @@ -87,7 +89,7 @@ jobs:
merge-multiple: true

- name: Configure npm auth
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > "$RUNNER_TEMP/.npmrc"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down Expand Up @@ -115,14 +117,16 @@ jobs:
OPENCODE_RELEASE: "1"
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_USERCONFIG: ${{ runner.temp }}/.npmrc
GH_REPO: ${{ env.GH_REPO }}
GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}

# Engine publish runs without waiting for build — it builds from source and
# doesn't need CLI binary artifacts. This allows it to run in parallel.
publish-engine:
name: Publish engine to PyPI
runs-on: ubuntu-latest
runs-on: arc-runner-altimate-code
timeout-minutes: 60
environment: pypi
permissions:
contents: read
Expand Down Expand Up @@ -152,7 +156,8 @@ jobs:
github-release:
name: Create GitHub Release
needs: [build, publish-npm]
runs-on: ubuntu-latest
runs-on: arc-runner-altimate-code
timeout-minutes: 60
permissions:
contents: write
steps:
Expand Down
Loading