Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRAFT: Use Changesets for versioning #3325

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft
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
3 changes: 2 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"access": "public",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["ssr-testing"]
"ignore": ["ssr-testing", "radix-ui"]
}
6 changes: 6 additions & 0 deletions .changeset/mean-eels-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@radix-ui/primitive': patch
'@radix-ui/react-label': patch
---

Test
41 changes: 41 additions & 0 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 'Publish Snapshot Release'

on:
push:
branches:
- chance/changesets # TODO: Update to `main` before merge
paths-ignore:
- '**/package.json'
- '.yarn/versions/**'

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
publish-snapshot:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: yarn

- name: Build packages
run: yarn build

- name: Write .npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTOMATION_FROM_CHANCE }}" > .npmrc

- name: Update snapshot version
run: yarn changeset version --snapshot

- name: Publish snapshot
run: yarn workspaces foreach -pvW --exclude primitives --exclude ssr-testing --exclude radix-ui npm publish --tolerate-republish --access public --tag next
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_FROM_CHANCE }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"publish:next": "yarn bump:next && yarn clean && yarn build && yarn workspaces foreach -pvW --exclude primitives --exclude ssr-testing npm publish --tolerate-republish --access public --tag next",
"clean": "yarn workspaces foreach -pvW --exclude primitives --exclude ssr-testing run clean",
"reset": "yarn clean && rm -rf node_modules .yarn/cache",
"bump:stable": "yarn version apply --all",
"bump:stable": "changeset version",
"bump:next": "yarn version apply --all --prerelease",
"bump:check": "yarn version check"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/core/number/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"homepage": "https://radix-ui.com/primitives",
"repository": {
Expand Down
3 changes: 1 addition & 2 deletions packages/core/primitive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"homepage": "https://radix-ui.com/primitives",
"repository": {
Expand Down
3 changes: 1 addition & 2 deletions packages/core/rect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"homepage": "https://radix-ui.com/primitives",
"repository": {
Expand Down
3 changes: 1 addition & 2 deletions packages/react/accessible-icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/react-visually-hidden": "workspace:*"
Expand Down
3 changes: 1 addition & 2 deletions packages/react/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/primitive": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/alert-dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/primitive": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/announce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/react-compose-refs": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/arrow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/react-primitive": "workspace:*"
Expand Down
3 changes: 1 addition & 2 deletions packages/react/aspect-ratio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/react-primitive": "workspace:*"
Expand Down
3 changes: 1 addition & 2 deletions packages/react/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/react-context": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/primitive": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/collapsible/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/primitive": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/collection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/react-compose-refs": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/compose-refs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"peerDependencies": {
"@types/react": "*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/context-menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/primitive": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"peerDependencies": {
"@types/react": "*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/primitive": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/direction/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"peerDependencies": {
"@types/react": "*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/dismissable-layer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/primitive": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/dropdown-menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/primitive": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/focus-guards/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"peerDependencies": {
"@types/react": "*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/focus-scope/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/react-compose-refs": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/primitive": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/hover-card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/primitive": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/id/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"peerDependencies": {
"@types/react": "*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/label/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/react-primitive": "workspace:*"
Expand Down
3 changes: 1 addition & 2 deletions packages/react/menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/primitive": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/menubar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/primitive": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/navigation-menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/primitive": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/popover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/primitive": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/popper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@floating-ui/react-dom": "^2.0.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"version": "yarn version"
"clean": "rm -rf dist"
},
"dependencies": {
"@radix-ui/react-primitive": "workspace:*",
Expand Down
Loading
Loading