Skip to content

Commit b13d264

Browse files
Copilotabernier
andcommitted
Switch from semantic-release to changesets
Co-authored-by: abernier <[email protected]>
1 parent a16d45b commit b13d264

File tree

6 files changed

+613
-2894
lines changed

6 files changed

+613
-2894
lines changed

.changeset/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changesets
2+
3+
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)
4+
5+
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)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "master",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/release.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ on:
33
push:
44
branches:
55
- 'master'
6-
- 'beta'
7-
- 'alpha'
8-
- 'canary-*'
9-
- 'rc'
106
pull_request: {}
117

128
permissions:
139
contents: write
10+
pull-requests: write
1411
id-token: write
1512

1613
# Cancel any previous run (see: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency)
@@ -70,7 +67,12 @@ jobs:
7067
- run: yarn install
7168
- run: yarn build
7269
- run: yarn build-storybook
73-
# semantic-release skips not configured branches(see: release.config.js) or pull-requests
74-
- run: yarn release
70+
71+
- name: Create Release Pull Request or Publish to npm
72+
id: changesets
73+
uses: changesets/action@v1
74+
with:
75+
publish: yarn release
7576
env:
7677
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-three/drei",
3-
"version": "0.0.0-semantic-release",
3+
"version": "10.0.0",
44
"private": true,
55
"description": "useful add-ons for react-three-fiber",
66
"keywords": [
@@ -44,7 +44,8 @@
4444
"chromatic": "chromatic --project-token $CHROMATIC_PROJECT_TOKEN",
4545
"copy": "copyfiles package.json README.md LICENSE dist && json -I -f dist/package.json -e \"this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.husky=undefined; this.prettier=undefined; this.jest=undefined; this['lint-staged']=undefined;\"",
4646
"copy:native": "copyfiles -u 2 src/native/package.json dist/native",
47-
"release": "semantic-release"
47+
"release": "yarn build && changeset publish",
48+
"changeset": "changeset"
4849
},
4950
"dependencies": {
5051
"@babel/runtime": "^7.26.0",
@@ -78,6 +79,7 @@
7879
"@babel/preset-env": "^7.26.0",
7980
"@babel/preset-react": "^7.25.9",
8081
"@babel/preset-typescript": "^7.26.0",
82+
"@changesets/cli": "^2.29.8",
8183
"@chromatic-com/storybook": "^4.1.3",
8284
"@eslint/compat": "^1.2.3",
8385
"@eslint/eslintrc": "^3.2.0",
@@ -118,7 +120,6 @@
118120
"rollup-plugin-multi-input": "^1.5.0",
119121
"rollup-plugin-terser": "^7.0.2",
120122
"seedrandom": "^3.0.5",
121-
"semantic-release": "^24.2.0",
122123
"serve": "^14.2.4",
123124
"storybook": "^10.1.11",
124125
"three": "^0.159.0",

release.config.js

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

0 commit comments

Comments
 (0)