Skip to content

Commit 8d31c34

Browse files
authored
Merge pull request #1 from triggerdotdev/chore/release-workflow
2 parents 3929ae2 + d1bc89d commit 8d31c34

60 files changed

Lines changed: 5509 additions & 1808 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Changesets PR
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- ".changeset/**"
9+
- "src/**"
10+
- "package.json"
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
changesets-pr:
18+
if: github.repository == 'triggerdotdev/agentcrumbs'
19+
name: Create Release PR
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
23+
pull-requests: write
24+
steps:
25+
- uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
- uses: pnpm/action-setup@v4
30+
with:
31+
version: 10
32+
33+
- uses: actions/setup-node@v4
34+
with:
35+
node-version: 22
36+
cache: pnpm
37+
38+
- run: pnpm install --frozen-lockfile
39+
40+
- name: Create Release PR
41+
uses: changesets/action@v1
42+
with:
43+
title: "chore: version package"
44+
commit: "chore: version package"
45+
version: pnpm changeset version
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Release
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
branches:
8+
- main
9+
10+
concurrency:
11+
group: ${{ github.workflow }}
12+
cancel-in-progress: false
13+
14+
jobs:
15+
release:
16+
if: >
17+
github.repository == 'triggerdotdev/agentcrumbs' &&
18+
github.event.pull_request.merged == true &&
19+
github.event.pull_request.head.ref == 'changeset-release/main'
20+
name: Publish to npm
21+
runs-on: ubuntu-latest
22+
environment: npm-publish
23+
permissions:
24+
contents: write
25+
id-token: write
26+
steps:
27+
- uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
30+
31+
- uses: pnpm/action-setup@v4
32+
with:
33+
version: 10
34+
35+
- uses: actions/setup-node@v4
36+
with:
37+
node-version: 22
38+
cache: pnpm
39+
registry-url: https://registry.npmjs.org
40+
41+
# npm 11.5.1+ required for OIDC publishing
42+
- run: npm install -g npm@11.6.4
43+
44+
- run: pnpm install --frozen-lockfile
45+
46+
- run: pnpm build
47+
48+
- run: pnpm typecheck
49+
50+
- name: Publish to npm
51+
run: pnpm changeset publish
52+
env:
53+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
54+
NPM_CONFIG_PROVENANCE: true
55+
56+
- name: Create git tags
57+
run: |
58+
VERSION=$(node -p "require('./package.json').version")
59+
git tag "v${VERSION}"
60+
git push origin "v${VERSION}"

docs/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
.next
3+
out
4+
.source

docs/api/.gitkeep

Whitespace-only changes.

docs/cli/.gitkeep

Whitespace-only changes.

docs/config/.gitkeep

Whitespace-only changes.

docs/content/docs/api/meta.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"title": "API",
3+
"pages": ["trail", "scope", "child", "timing", "sessions"]
4+
}

0 commit comments

Comments
 (0)