forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.5 KB
/
Copy pathhttp-recorder-release.yml
File metadata and controls
53 lines (45 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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