From e66f229faf7ef706242dd10f83dd0e8151ddec91 Mon Sep 17 00:00:00 2001 From: f <> Date: Thu, 19 Sep 2024 02:05:52 +0200 Subject: [PATCH] adding changeset GitOrigin-RevId: 459a310fc40a86b80d396f6a290edeb469b228d8 --- .../packages.react-router-busy.copy.yml | 1 + .../packages.react-router-busy.integrate.yml | 45 ++++++++++++++++-- bun.lockb | Bin 464592 -> 464592 bytes .../react-router-busy/.changeset/README.md | 8 ++++ .../react-router-busy/.changeset/config.json | 11 +++++ packages/react-router-busy/package.json | 7 +-- 6 files changed, 65 insertions(+), 7 deletions(-) create mode 100644 packages/react-router-busy/.changeset/README.md create mode 100644 packages/react-router-busy/.changeset/config.json diff --git a/.github/workflows/packages.react-router-busy.copy.yml b/.github/workflows/packages.react-router-busy.copy.yml index f65e4e5..92c0cef 100644 --- a/.github/workflows/packages.react-router-busy.copy.yml +++ b/.github/workflows/packages.react-router-busy.copy.yml @@ -6,6 +6,7 @@ on: # Only sync to destination once a week - cron: '0 0 * * 0' pull_request_target: + # TODO Call when a PR affecting this package is merged or release is made jobs: move-code: # Just don't run push in monorepo since we use cron there diff --git a/.github/workflows/packages.react-router-busy.integrate.yml b/.github/workflows/packages.react-router-busy.integrate.yml index a6cb2ee..828b48d 100644 --- a/.github/workflows/packages.react-router-busy.integrate.yml +++ b/.github/workflows/packages.react-router-busy.integrate.yml @@ -1,4 +1,4 @@ -name: Integrate +name: Integrate (and Release) on: pull_request: @@ -9,9 +9,21 @@ on: - 'packages/react-router-busy/**' jobs: - integrate: + quality: if: github.repository == 'bitofbreeze/mono' runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Set up Biome + uses: biomejs/setup-biome@v2 + with: + version: latest + - name: Run Biome + run: biome ci . + integrate: + needs: [quality] + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v4 @@ -23,10 +35,35 @@ jobs: bun-version: latest - name: Install dependencies (`npm ci`) run: bun install --frozen-lockfile + - name: Test + run: bun test --filter react-router-busy --coverage # Build checks types so no need for separate typecheck step - name: Build run: bun --filter react-router-busy build - name: Check exports run: bun --filter react-router-busy check-exports - - name: Test - run: bun test --filter react-router-busy + release: + # Only upsert release PR when pushing (to main) + if: github.event_name == 'push' + needs: [integrate] + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Bun + uses: oven-sh/setup-bun@v2.0.1 + with: + bun-version: latest + - name: Install dependencies (`npm ci`) + run: bun install --frozen-lockfile + - name: Create release pull request or publish to npm + id: changesets + uses: changesets/action@v1 + with: + # This expects you to have a script called release which does a build for your packages and calls changeset publish + publish: bun --filter react-router-busy build && bun --filter react-router-busy release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/bun.lockb b/bun.lockb index 4993263cd751d7fad5361aaedaf0ba4d0ab807fd..4bc577580ffedce6fdd5587472b8d8e97ab87dbf 100755 GIT binary patch delta 103 zcmcbxR_4N5nT8g|7N!>FEi5eO72^yo^o;ck89G=Q7z7v?8mzaq>OTHZAZWlCXQpQa xMAKEzv*;)=F+jl{pgJy~x>IbLd%X=Bzi2QT>KW=;wiljf0bFEi5eO6%8%)jP(o|7&=%P7z7v?8mzaq>OTHZAZWm7re_31 z4AWK5v*;)=8tECC>sc@`>;bCd0;)U3rn%SKpz(_a69Wje7oKMUV%F`2=h@=j0qWlz A>i_@% diff --git a/packages/react-router-busy/.changeset/README.md b/packages/react-router-busy/.changeset/README.md new file mode 100644 index 0000000..e5b6d8d --- /dev/null +++ b/packages/react-router-busy/.changeset/README.md @@ -0,0 +1,8 @@ +# Changesets + +Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works +with multi-package repos, or single-package repos to help you version and publish your code. You can +find the full documentation for it [in our repository](https://github.com/changesets/changesets) + +We have a quick list of common questions to get you started engaging with this project in +[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) diff --git a/packages/react-router-busy/.changeset/config.json b/packages/react-router-busy/.changeset/config.json new file mode 100644 index 0000000..edef2eb --- /dev/null +++ b/packages/react-router-busy/.changeset/config.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json", + "changelog": "@changesets/cli/changelog", + "commit": false, + "fixed": [], + "linked": [], + "access": "restricted", + "baseBranch": "main", + "updateInternalDependencies": "patch", + "ignore": [] +} diff --git a/packages/react-router-busy/package.json b/packages/react-router-busy/package.json index 2718935..f059996 100644 --- a/packages/react-router-busy/package.json +++ b/packages/react-router-busy/package.json @@ -31,11 +31,12 @@ }, "scripts": { "build": "tsc && cp src/busy.module.css build/busy.module.css", - "check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm" + "check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm", + "release": "changeset version && changeset publish" }, "peerDependencies": { - "react-router-dom": "6.26.2", - "react": "18.3.1" + "react-router-dom": "^6.26.2", + "react": "^18.3.1" }, "devDependencies": { "@arethetypeswrong/cli": "0.16.2",