Skip to content

Commit

Permalink
adding changeset
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 459a310fc40a86b80d396f6a290edeb469b228d8
  • Loading branch information
f authored and actions-user committed Sep 19, 2024
1 parent 2412edb commit e66f229
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/packages.react-router-busy.copy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
45 changes: 41 additions & 4 deletions .github/workflows/packages.react-router-busy.integrate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Integrate
name: Integrate (and Release)

on:
pull_request:
Expand All @@ -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
Expand All @@ -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/[email protected]
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 }}
Binary file modified bun.lockb
Binary file not shown.
8 changes: 8 additions & 0 deletions packages/react-router-busy/.changeset/README.md
Original file line number Diff line number Diff line change
@@ -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)
11 changes: 11 additions & 0 deletions packages/react-router-busy/.changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
7 changes: 4 additions & 3 deletions packages/react-router-busy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e66f229

Please sign in to comment.