Skip to content

Commit fc86baf

Browse files
Nstttcursoragent
andauthored
ci: release with release-please instead of Changesets (#9)
Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Néstor <Nsttt@users.noreply.github.com>
1 parent 8bd725a commit fc86baf

17 files changed

Lines changed: 121 additions & 405 deletions

‎.changeset/config.json‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎.changeset/fifty-sites-sin.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/quiet-remotes-fetch.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/tidy-router-shares.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/tidy-ssr-revalidation.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.github/workflows/pr.yml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ jobs:
1111
semantic-pr:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Accept generated release title
15-
if: ${{ startsWith(github.event.pull_request.title, 'Release ') }}
16-
run: echo "Generated release PR title accepted."
17-
1814
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
19-
if: ${{ !startsWith(github.event.pull_request.title, 'Release ') }}
2015
env:
2116
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: release-please
13+
cancel-in-progress: false
14+
15+
jobs:
16+
release-please:
17+
runs-on: ubuntu-latest
18+
steps:
19+
# Releases created with GITHUB_TOKEN do not trigger other workflows, so the
20+
# repository token is what lets a published release start release.yml.
21+
- name: Validate release token
22+
env:
23+
REPO_SCOPED_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
24+
run: test -n "$REPO_SCOPED_TOKEN" || { echo "REPO_SCOPED_TOKEN is required."; exit 1; }
25+
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
26+
with:
27+
token: ${{ secrets.REPO_SCOPED_TOKEN }}
28+
config-file: release-please-config.json
29+
manifest-file: .release-please-manifest.json

‎.github/workflows/release-pull-request.yml‎

Lines changed: 0 additions & 44 deletions
This file was deleted.

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,9 @@ jobs:
5757
- name: Generate preview version
5858
if: github.event_name == 'workflow_dispatch' && inputs.version == 'next'
5959
run: |
60-
pnpm changeset version --snapshot next
61-
SNAPSHOT_VERSION="$(node -p "require('./packages/tanstack/package.json').version")"
62-
BASE_VERSION="${SNAPSHOT_VERSION%%-*}"
63-
npm pkg set version="${BASE_VERSION}-next.${GITHUB_RUN_ID}" --prefix packages/tanstack
60+
BASE_VERSION="$(node -p "require('./packages/tanstack/package.json').version.split('-')[0]")"
61+
IFS=. read -r MAJOR MINOR PATCH <<< "$BASE_VERSION"
62+
npm pkg set version="${MAJOR}.${MINOR}.$((PATCH + 1))-next.${GITHUB_RUN_ID}" --prefix packages/tanstack
6463
- run: pnpm format:check
6564
- run: pnpm typecheck
6665
- run: pnpm build

‎.prettierignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ node_modules
33
pnpm-lock.yaml
44
.turbo
55
**/routeTree.gen.ts
6+
# Written by release-please
7+
packages/tanstack/CHANGELOG.md
8+
.release-please-manifest.json

0 commit comments

Comments
 (0)