File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,14 +14,20 @@ jobs:
1414 timeout-minutes : 5
1515
1616 steps :
17- - uses : actions/checkout@v4
18- - uses : actions/setup-node@v4
17+ - uses : actions/checkout@v5
18+
19+ - name : Install pnpm
20+ uses : pnpm/action-setup@v4
21+ with :
22+ version : latest
23+
24+ - uses : actions/setup-node@v5
1925 with :
20- cache : yarn
21- node-version : 20
26+ cache : pnpm
27+ node-version : 22
2228
2329 - name : Install
24- run : yarn install
30+ run : pnpm install
2531
2632 - name : Verify build
27- run : yarn build
33+ run : pnpm build
Original file line number Diff line number Diff line change @@ -119,20 +119,3 @@ any of them:
119119- Specifying the target attribute. For example, we could add a ` targetAttr `
120120 setting to allow specifying which attribute to toggle.
121121 e.g. ` targetAttr: "data-dark-mode" ` .
122-
123- ## Developing
124-
125- The easiest way to develop is using [ ` yalc ` ] ( https://github.com/wclr/yalc ) .
126-
127- Install it globally and then from this repo do:
128-
129- ```
130- yarn build
131- yalc publish
132- ```
133-
134- Then in your project that is using React Cosmos run:
135-
136- ```
137- yalc add react-cosmos-dark-mode
138- ```
Original file line number Diff line number Diff line change 4040 "registry" : " https://registry.npmjs.org"
4141 },
4242 "scripts" : {
43- "prepublishOnly" : " yarn build" ,
43+ "prepublishOnly" : " pnpm build" ,
4444 "build" : " tsup --config tsup.index.config.ts && tsup --config tsup.fixture.config.ts" ,
4545 "release" : " release-it"
4646 },
You can’t perform that action at this time.
0 commit comments