From 5012701e6aeca34662ee1c72db3acdb3a5d3a954 Mon Sep 17 00:00:00 2001 From: Alek Merani Date: Sun, 14 Sep 2025 19:13:00 -0700 Subject: [PATCH 1/5] use am/cicd --- .github/workflows/default.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 3945447..88ab199 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -6,5 +6,12 @@ on: - main jobs: - build: - uses: ./.github/workflows/ci-build.yml + ci: + uses: amerani/cicd/.github/workflows/ci-npm.yml@main + with: + test: npm run test:ci + cd: + uses: amerani/cicd/.github/workflows/ci-npm.yml@main + with: + test: npm run test:ci + publish: npm run release From 34096aa7674dd373ee33aeaf8daff544ca85b582 Mon Sep 17 00:00:00 2001 From: Alek Merani Date: Sun, 14 Sep 2025 19:13:37 -0700 Subject: [PATCH 2/5] fix --- .github/workflows/default.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 88ab199..49b78ec 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -11,7 +11,7 @@ jobs: with: test: npm run test:ci cd: - uses: amerani/cicd/.github/workflows/ci-npm.yml@main + uses: amerani/cicd/.github/workflows/cd-npm.yml@main with: test: npm run test:ci publish: npm run release From 57dbc2d2a5b80f743c3b7321f6d9c1596040842c Mon Sep 17 00:00:00 2001 From: Alek Merani Date: Sun, 14 Sep 2025 19:15:41 -0700 Subject: [PATCH 3/5] fix perms --- .github/workflows/default.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 49b78ec..c01a019 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -5,13 +5,19 @@ on: branches-ignore: - main +permissions: + contents: write + id-token: write + jobs: ci: uses: amerani/cicd/.github/workflows/ci-npm.yml@main + secrets: inherit with: test: npm run test:ci cd: - uses: amerani/cicd/.github/workflows/cd-npm.yml@main + uses: amerani/cicd/.github/workflows/cd-npm.yml@main + secrets: inherit with: test: npm run test:ci publish: npm run release From 53e3222d0561d8aacf3efcf274008e3328e19da4 Mon Sep 17 00:00:00 2001 From: Alek Merani Date: Sun, 14 Sep 2025 19:20:03 -0700 Subject: [PATCH 4/5] use cicd templates --- .github/workflows/ci-build.yml | 34 ------------------------- .github/workflows/default.yml | 8 +----- .github/workflows/release.yml | 45 ++++++++-------------------------- 3 files changed, 11 insertions(+), 76 deletions(-) delete mode 100644 .github/workflows/ci-build.yml diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml deleted file mode 100644 index 8a8f611..0000000 --- a/.github/workflows/ci-build.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Reusable CI Build Workflow - -on: - workflow_call: - inputs: - node-version: - required: false - type: string - default: 24 - -permissions: - contents: read - -jobs: - ci-build: - runs-on: ubuntu-latest - 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: Test - run: npm run test:ci diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index c01a019..75e1be2 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -14,10 +14,4 @@ jobs: uses: amerani/cicd/.github/workflows/ci-npm.yml@main secrets: inherit with: - test: npm run test:ci - cd: - uses: amerani/cicd/.github/workflows/cd-npm.yml@main - secrets: inherit - with: - test: npm run test:ci - publish: npm run release + test: npm run test:ci \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a8c5b4..acf3457 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,39 +5,14 @@ on: 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: Test - run: npm run test:ci - - - 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 }} +permissions: + contents: write + id-token: write +jobs: + cd: + uses: amerani/cicd/.github/workflows/cd-npm.yml@main + secrets: inherit + with: + test: npm run test:ci + publish: npm run release From 38d130af4bc9446e8d08b81657036a4267bef814 Mon Sep 17 00:00:00 2001 From: Alek Merani Date: Sun, 14 Sep 2025 19:20:40 -0700 Subject: [PATCH 5/5] changelog --- CHANGELOG.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3362a5a..61cfef4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # react-json-chunked +## 0.3.8 + +### Patch Changes + +- uses amerani/cicd templates + ## 0.3.7 ### Patch Changes diff --git a/package.json b/package.json index ad0cc18..bece0ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-json-chunked", - "version": "0.3.7", + "version": "0.3.8", "description": "A React component for streaming JSON using chunked Transfer-Encoding", "type": "module", "files": [