Skip to content

Commit 2d4e8ac

Browse files
ntatoudclaude
andcommitted
Set up npm publishing with changesets and trusted publishing
- Rename package to react-http-renderer (react-http was taken on npm) - Rename package directory to packages/react-http-renderer - Add @changesets/cli and @changesets/changelog-github for version management - Add GitHub Actions release workflow with OIDC trusted publishing - Add publishConfig, repository, homepage, bugs metadata to package.json - Add changeset, version-packages, release scripts to root - Create initial CHANGELOG.md for v0.1.0 - Add professional README with banner, badges, and full documentation - Update all imports in example app to use new package name Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9bd83df commit 2d4e8ac

24 files changed

Lines changed: 1356 additions & 184 deletions

.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 the changesets repository](https://github.com/changesets/changesets).
6+
7+
**For contributors**: If your PR includes changes to the `react-http-renderer` package, please run `pnpm changeset` and
8+
follow the prompts to describe your changes. Commit the generated changeset file along with your code changes.

.changeset/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "ntatoud/react-http" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "main",
12+
"updateInternalDependencies": "patch",
13+
"ignore": ["@todo-app/backend", "@todo-app/frontend"]
14+
}

.github/workflows/release.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
name: Release
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
id-token: write
18+
19+
steps:
20+
- name: Checkout repo
21+
uses: actions/checkout@v4
22+
23+
- name: Setup pnpm
24+
uses: pnpm/action-setup@v4
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
cache: pnpm
31+
registry-url: "https://registry.npmjs.org"
32+
33+
- name: Install dependencies
34+
run: pnpm install
35+
36+
- name: Build
37+
run: pnpm turbo run build
38+
39+
- name: Create Release Pull Request or Publish
40+
id: changesets
41+
uses: changesets/action@v1
42+
with:
43+
title: "chore: version packages"
44+
commit: "chore: version packages"
45+
publish: pnpm release
46+
version: pnpm version-packages
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)