feat(http-recorder): prepare independent beta release
This commit is contained in:
parent
f48f24ec4e
commit
81eea42e80
17 changed files with 485 additions and 85 deletions
35
.github/workflows/http-recorder-release.yml
vendored
Normal file
35
.github/workflows/http-recorder-release.yml
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
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
|
||||
environment: npm
|
||||
steps:
|
||||
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
||||
|
||||
- uses: ./.github/actions/setup-bun
|
||||
|
||||
- name: Verify package
|
||||
working-directory: packages/http-recorder
|
||||
run: |
|
||||
bun run test
|
||||
bun typecheck
|
||||
|
||||
- name: Publish beta
|
||||
run: |
|
||||
if [ -n "$NODE_AUTH_TOKEN" ]; then
|
||||
npm config set //registry.npmjs.org/:_authToken "$NODE_AUTH_TOKEN"
|
||||
fi
|
||||
bun run release:http-recorder
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue