54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
name: http-recorder release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
paths:
|
|
- ".changeset/**"
|
|
- "packages/http-recorder/**"
|
|
- ".github/workflows/http-recorder-release.yml"
|
|
|
|
concurrency: http-recorder-release
|
|
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
release:
|
|
if: github.repository == 'anomalyco/opencode'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: ./.github/actions/setup-bun
|
|
|
|
- name: Setup git committer
|
|
id: committer
|
|
uses: ./.github/actions/setup-git-committer
|
|
with:
|
|
opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
|
|
opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
|
|
|
|
- name: Verify package
|
|
run: |
|
|
bun run --cwd packages/http-recorder build
|
|
bun run --cwd packages/http-recorder test
|
|
bun run --cwd packages/http-recorder typecheck
|
|
bun run --cwd packages/http-recorder verify:package
|
|
|
|
- name: Version or publish beta
|
|
uses: changesets/action@3841a0683d3cfa6dae0f9bb335290003010fe3f0 # v1.9.0
|
|
with:
|
|
version: bun run version:http-recorder
|
|
publish: bun run release:http-recorder
|
|
commit: "chore(http-recorder): release beta"
|
|
title: "chore(http-recorder): release beta"
|
|
env:
|
|
GITHUB_TOKEN: ${{ steps.committer.outputs.token }}
|
|
NPM_CONFIG_PROVENANCE: true
|