Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@ jobs:
timeout-minutes: 5

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest

- uses: actions/setup-node@v5
with:
cache: yarn
node-version: 20
cache: pnpm
node-version: 22

- name: Install
run: yarn install
run: pnpm install

- name: Verify build
run: yarn build
run: pnpm build
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,3 @@ any of them:
- Specifying the target attribute. For example, we could add a `targetAttr`
setting to allow specifying which attribute to toggle.
e.g. `targetAttr: "data-dark-mode"`.

## Developing

The easiest way to develop is using [`yalc`](https://github.com/wclr/yalc).

Install it globally and then from this repo do:

```
yarn build
yalc publish
```

Then in your project that is using React Cosmos run:

```
yalc add react-cosmos-dark-mode
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"registry": "https://registry.npmjs.org"
},
"scripts": {
"prepublishOnly": "yarn build",
"prepublishOnly": "pnpm build",
"build": "tsup --config tsup.index.config.ts && tsup --config tsup.fixture.config.ts",
"release": "release-it"
},
Expand Down
Loading