Skip to content

Commit 1050ded

Browse files
committed
replace release-please with changesets
1 parent 6e6f0e2 commit 1050ded

File tree

11 files changed

+664
-138
lines changed

11 files changed

+664
-138
lines changed

.changeset/config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "portabletext/react-pdf-portabletext" }],
4+
"commit": false,
5+
"access": "public",
6+
"baseBranch": "main",
7+
"updateInternalDependencies": "patch"
8+
}

.changeset/easy-camels-deny.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@portabletext/react-pdf": patch
3+
---
4+
5+
Add LICENSE

.czrc

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

.github/workflows/release-please.yml

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

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
permissions:
11+
contents: read # for checkout
12+
13+
jobs:
14+
release:
15+
uses: portabletext/.github/.github/workflows/changesets.yml@main
16+
permissions:
17+
contents: read # for checkout
18+
id-token: write # to enable use of OIDC for npm provenance
19+
secrets: inherit

.github/workflows/renovate.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Add changeset to Renovate updates
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize]
6+
7+
concurrency: ${{ github.workflow }}-${{ github.ref }}
8+
9+
permissions:
10+
contents: read # for checkout
11+
12+
jobs:
13+
call:
14+
uses: portabletext/.github/.github/workflows/changesets-from-conventional-commits.yml@main
15+
if: github.event.pull_request.user.login == 'renovate[bot]'
16+
secrets: inherit

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
pnpm-lock.yaml
2+
.changeset/*.md

CHANGELOG.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,40 @@
1-
# Changelog
1+
# @portabletext/react-pdf
22

33
## [1.0.5](https://github.com/portabletext/react-pdf-portabletext/compare/v1.0.4...v1.0.5) (2025-07-02)
44

5-
65
### Bug Fixes
76

8-
* **deps:** clean up dependencies, upgrade to latest vite, vitest ([#14](https://github.com/portabletext/react-pdf-portabletext/issues/14)) ([f285be2](https://github.com/portabletext/react-pdf-portabletext/commit/f285be26d4c273810b94abe0f74b4ba0ee1b2a22))
9-
* Update the readme to give infor on the PDFViewer issue, add some keywords ([43772a9](https://github.com/portabletext/react-pdf-portabletext/commit/43772a962e8b59a88bfd1246f7c863fabf61d711))
7+
- **deps:** clean up dependencies, upgrade to latest vite, vitest ([#14](https://github.com/portabletext/react-pdf-portabletext/issues/14)) ([f285be2](https://github.com/portabletext/react-pdf-portabletext/commit/f285be26d4c273810b94abe0f74b4ba0ee1b2a22))
8+
- Update the readme to give infor on the PDFViewer issue, add some keywords ([43772a9](https://github.com/portabletext/react-pdf-portabletext/commit/43772a962e8b59a88bfd1246f7c863fabf61d711))
109

1110
## [1.0.4](https://github.com/portabletext/react-pdf-portabletext/compare/v1.0.3...v1.0.4) (2025-07-01)
1211

13-
1412
### Bug Fixes
1513

16-
* update package.json with homepage, keywords, bugs url to improve search indexing ([83b9525](https://github.com/portabletext/react-pdf-portabletext/commit/83b9525af89f4b351f13e094e1bb56dba0d4ab21))
14+
- update package.json with homepage, keywords, bugs url to improve search indexing ([83b9525](https://github.com/portabletext/react-pdf-portabletext/commit/83b9525af89f4b351f13e094e1bb56dba0d4ab21))
1715

1816
## [1.0.3](https://github.com/portabletext/react-pdf-portabletext/compare/v1.0.2...v1.0.3) (2025-07-01)
1917

20-
2118
### Bug Fixes
2219

23-
* no-op change to trigger release ([4ea0011](https://github.com/portabletext/react-pdf-portabletext/commit/4ea0011e3e76024481ec6aee955e2add1a99773e))
20+
- no-op change to trigger release ([4ea0011](https://github.com/portabletext/react-pdf-portabletext/commit/4ea0011e3e76024481ec6aee955e2add1a99773e))
2421

2522
## [1.0.2](https://github.com/portabletext/react-pdf-portabletext/compare/v1.0.1...v1.0.2) (2025-07-01)
2623

27-
2824
### Bug Fixes
2925

30-
* built demo not supported for this repo ([2394675](https://github.com/portabletext/react-pdf-portabletext/commit/2394675cd98ae64e5170c8853184618427f216ed))
26+
- built demo not supported for this repo ([2394675](https://github.com/portabletext/react-pdf-portabletext/commit/2394675cd98ae64e5170c8853184618427f216ed))
3127

3228
## [1.0.1](https://github.com/portabletext/react-pdf-portabletext/compare/v1.0.0...v1.0.1) (2025-07-01)
3329

34-
3530
### Bug Fixes
3631

37-
* Update package.json repository settings ([19d19d0](https://github.com/portabletext/react-pdf-portabletext/commit/19d19d01efc200d1c31c17085ed1843fadb838de))
32+
- Update package.json repository settings ([19d19d0](https://github.com/portabletext/react-pdf-portabletext/commit/19d19d01efc200d1c31c17085ed1843fadb838de))
3833

3934
## 1.0.0 (2025-06-30)
4035

41-
4236
### Features
4337

44-
* Add changelog functionality ([9c9e0d6](https://github.com/portabletext/react-pdf-portabletext/commit/9c9e0d6df28030f106dbdf92c59bb754aa456003))
38+
- Add changelog functionality ([9c9e0d6](https://github.com/portabletext/react-pdf-portabletext/commit/9c9e0d6df28030f106dbdf92c59bb754aa456003))
4539

4640
<!-- markdownlint-disable --><!-- textlint-disable -->

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Johnny Povolny <johnny.povolny@sanity.io>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
"format": "prettier --write --cache --ignore-unknown .",
5555
"lint": "eslint .",
5656
"type-check": "tsc --noEmit",
57-
"prepublishOnly": "run-s build lint type-check"
57+
"prepublishOnly": "run-s build lint type-check",
58+
"release": "changeset publish"
5859
},
5960
"browserslist": "extends @sanity/browserslist-config",
6061
"dependencies": {
@@ -68,6 +69,8 @@
6869
"react-dom": "^19.1.0"
6970
},
7071
"devDependencies": {
72+
"@changesets/changelog-github": "^0.5.1",
73+
"@changesets/cli": "^2.29.6",
7174
"@eslint/js": "^9.25.0",
7275
"@portabletext/types": "^2.0.13",
7376
"@react-pdf/types": "^2.9.0",
@@ -89,7 +92,7 @@
8992
"prettier": "^3.5.3",
9093
"prettier-plugin-organize-imports": "^4.1.0",
9194
"rimraf": "^6.0.1",
92-
"typescript": "~5.8.3",
95+
"typescript": "5.9.2",
9396
"typescript-eslint": "^8.30.1",
9497
"vite": "^7.0.0",
9598
"vitest": "^3.2.4"

0 commit comments

Comments
 (0)