Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets).

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md).
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.4/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "dolthub/react-library" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
50 changes: 50 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release

# Changesets-driven release. On every push to main:
# - if there are pending changesets, opens/updates a "Version Packages" PR
# that bumps versions (including dependents), rewrites internal ranges,
# and writes changelogs.
# - when that PR is merged (no changesets left, versions changed), builds
# and publishes the changed packages and creates GitHub releases.
on:
push:
branches:
- main

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false

permissions:
contents: write # create release commits/tags and GitHub releases
pull-requests: write # open the Version Packages PR
id-token: write # npm provenance / OIDC trusted publishing

jobs:
release:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Enable Corepack before setting up Node
run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: "24"

- name: Install
run: yarn install --immutable

- name: Create Release PR or publish
uses: changesets/action@v1
with:
version: yarn version-packages
publish: yarn release
title: "Version Packages"
commit: "Version Packages"
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
],
"scripts": {
"ci": "yarn prettier && yarn lint && yarn dbuild && yarn test",
"changeset": "changeset",
"version-packages": "changeset version",
"release": "yarn dbuild && changeset publish",
"clean": "rimraf node_modules -g 'packages/*/.eslintcache' 'packages/*/*.tsbuildinfo' 'packages/*/dist' 'packages/*/.rollup.cache' 'packages/*/types' 'packages/*/coverage'",
"dbuild": "npm-run-all 'dbuild:*'",
"dbuild:utils": "yarn workspace @dolthub/web-utils dbuild",
Expand Down Expand Up @@ -34,6 +37,8 @@
"test:components": "yarn workspace @dolthub/react-components test"
},
"devDependencies": {
"@changesets/changelog-github": "^0.7.0",
"@changesets/cli": "^2.31.0",
"@eslint/compat": "^2.1.0",
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^9.39.2",
Expand Down
Loading
Loading