From 6b355b64724cc612b2b0328d38b395e55fe01317 Mon Sep 17 00:00:00 2001 From: Alek Merani Date: Sun, 14 Sep 2025 16:31:54 -0700 Subject: [PATCH] setup changesets --- .changeset/config.json | 1 + .github/workflows/default.yml | 2 +- .github/workflows/release.yml | 40 +++++++++++++++++++++++++++++++++++ CHANGELOG.md | 6 +++--- package.json | 7 +++++- 5 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.changeset/config.json b/.changeset/config.json index 13e5bd5..21d4f37 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -6,6 +6,7 @@ "fixed": [], "linked": [], "access": "public", + "provenance": true, "baseBranch": "main", "updateInternalDependencies": "patch", "ignore": [] diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 48366b4..3945447 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -2,7 +2,7 @@ name: Default Workflow on: push: - branches: + branches-ignore: - main jobs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c063b1b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,40 @@ +name: Release Workflow + +on: + push: + branches: + - main + +jobs: + release: + runs-on: ubuntu-latest + permissions: + contents: write + id-token: write + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: ${{ inputs.node-version }} + registry-url: 'https://registry.npmjs.org' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Release + uses: changesets/action@v1 + with: + publish: npm run release + setupGitUser: false + commitMode: github-api + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + diff --git a/CHANGELOG.md b/CHANGELOG.md index 487c51f..892f9c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,12 @@ # react-json-chunked -## 0.3.2 +## 0.3.6 ### Patch Changes -- test changesets +- setup change sets/logs -## 0.3.1 +## 0.3.5 - 🎣 **Custom Hook**: Exports a custom `useJsonStream` hook for consuming JSON chunks - ⚛️ **React Integration**: Built with native `useSyncExternalStore` hook for optimal rendering diff --git a/package.json b/package.json index fcf3f7c..caf552a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-json-chunked", - "version": "0.3.2", + "version": "0.3.6", "description": "A React component for streaming JSON using chunked Transfer-Encoding", "type": "module", "files": [ @@ -26,6 +26,11 @@ "type": "git", "url": "git+https://github.com/amerani/react-json-chunked.git" }, + "publishConfig": { + "registry": "https://registry.npmjs.org", + "access": "public", + "provenance": true + }, "peerDependencies": { "react": "^19.1.1", "react-dom": "^19.1.1"