Skip to content

Commit 061ba10

Browse files
authored
chore: replace release-it with changesets (#180)
1 parent ac6decb commit 061ba10

File tree

7 files changed

+577
-1616
lines changed

7 files changed

+577
-1616
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.4/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "callstack/react-native-brownfield" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "main",
12+
"ignore": [
13+
"docs",
14+
"android-app",
15+
"apple-app",
16+
"rn-app",
17+
"tester-integrated",
18+
"react-native-brownfield-gradle-plugin"
19+
],
20+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
21+
"onlyUpdatePeerDependentsWhenOutOfRange": true,
22+
"updateInternalDependents": "always"
23+
},
24+
"snapshot": {
25+
"useCalculatedVersion": true
26+
}
27+
}

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
permissions:
13+
contents: write
14+
id-token: write
15+
pull-requests: write
16+
name: Release
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout Repo
20+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
22+
- name: Setup Node.js 20
23+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
24+
with:
25+
node-version: 20
26+
27+
- name: Install Dependencies
28+
run: yarn
29+
30+
- name: Create Release Pull Request or Publish to NPM
31+
uses: changesets/action@e9cc34b540dd3ad1b030c57fd97269e8f6ad905a # v1.4.9
32+
with:
33+
version: yarn version-packages
34+
publish: yarn publish-packages
35+
commit: 'chore(release): version packages'
36+
title: 'chore(release): version packages'
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
NPM_CONFIG_PROVENANCE: true
40+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"lint": "turbo run lint",
1212
"typecheck": "turbo run typecheck",
1313
"build": "turbo run build",
14-
"release": "release-it --config packages/react-native-brownfield/.release-it.json",
14+
"version-packages": "changeset version && yarn install --no-immutable",
15+
"publish-packages": "turbo run build lint && changeset version && changeset publish",
1516
"brownfield:plugin:publish:local": "bash ./gradle-plugins/publish-to-maven-local.sh",
1617
"build:brownfield": "turbo run build:brownfield",
1718
"build:docs": "turbo run build:docs",
@@ -28,21 +29,21 @@
2829
},
2930
"packageManager": "yarn@4.12.0",
3031
"dependencies": {
32+
"@changesets/changelog-github": "^0.5.2",
33+
"@changesets/cli": "^2.29.8",
3134
"quicktype-core": "^23.2.6",
3235
"quicktype-typescript-input": "^23.2.6"
3336
},
3437
"devDependencies": {
3538
"@commitlint/cli": "^20.1.0",
3639
"@commitlint/config-conventional": "^20.0.0",
3740
"@react-native/eslint-config": "0.82.1",
38-
"@release-it/conventional-changelog": "^10.0.1",
3941
"babel-plugin-module-resolver": "5.0.2",
4042
"eslint": "^8.57.1",
4143
"eslint-config-prettier": "^10.1.8",
4244
"eslint-plugin-prettier": "^5.1.3",
4345
"lefthook": "^2.0.3",
4446
"prettier": "^3.5.3",
45-
"release-it": "^19.0.6",
4647
"turbo": "^2.7.3",
4748
"typescript": "5.8.3"
4849
},

packages/brownie/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "@callstack/brownie",
3-
"version": "0.1.0",
3+
"version": "0.0.1",
44
"license": "MIT",
5-
"author": "Michal Chudziak <mike.chudziak@callstack.com>",
5+
"author": "Oskar Kwaśniewski <oskarkwasniewski@icloud.com>",
66
"contributors": [
7-
"Piotr Drapich <piotr.drapich@callstack.com>",
8-
"Oskar Kwaśniewski <oskar.kwasniewski@callstack.com>"
7+
"Artur Morys-Magiera <artus9033@gmail.com>",
8+
"Oskar Kwasniewski <oskarkwasniewski@icloud.com>"
99
],
1010
"homepage": "https://github.com/callstack/react-native-brownfield",
1111
"description": "Shared state management between React Native and Native apps",
@@ -54,7 +54,8 @@
5454
"!**/.*"
5555
],
5656
"publishConfig": {
57-
"access": "public"
57+
"access": "public",
58+
"tag": "alpha"
5859
},
5960
"peerDependencies": {
6061
"react": "*",

packages/react-native-brownfield/.release-it.json

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

0 commit comments

Comments
 (0)