opencode/.github/workflows/http-recorder-release.yml

35 lines
861 B
YAML

name: http-recorder release
on:
workflow_dispatch:
concurrency: http-recorder-release
permissions:
contents: read
id-token: write
jobs:
release:
if: github.repository == 'anomalyco/opencode' && github.ref == 'refs/heads/dev'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: ./.github/actions/setup-bun
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- name: Verify package
working-directory: packages/http-recorder
run: |
bun run test
bun typecheck
- name: Publish beta
run: bun run release:http-recorder
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}