File tree 7 files changed +10688
-9811
lines changed
7 files changed +10688
-9811
lines changed Original file line number Diff line number Diff line change 15
15
- name : Use Node.js LTS
16
16
uses : actions/setup-node@v4
17
17
with :
18
- # alias support: https://github.com/actions/setup-node/issues/26
19
- node-version : ' 12'
18
+ node-version : ' 20'
20
19
- name : Cache NPM dependencies
21
20
uses : actions/cache@v3
22
21
with :
@@ -25,12 +24,11 @@ jobs:
25
24
restore-keys : |
26
25
${{ runner.OS }}-npm-cache-${{ matrix.os }}
27
26
- name : Install Dependencies
28
- run : |
29
- npm install -g yarn
30
- yarn --frozen-lockfile --non-interactive
27
+ run :
28
+ pnpm --frozen-lockfile --non-interactive
31
29
- name : Test
32
- run : yarn test
30
+ run : pnpm test
33
31
- name : Lint
34
- run : yarn lint
32
+ run : pnpm lint
35
33
env :
36
34
CI : true
Original file line number Diff line number Diff line change @@ -11,24 +11,22 @@ jobs:
11
11
steps :
12
12
- uses : actions/checkout@v2
13
13
- name : Use Node.js LTS
14
- uses : actions/setup-node@v1
14
+ uses : actions/setup-node@v4
15
15
with :
16
16
# alias support: https://github.com/actions/setup-node/issues/26
17
- node-version : ' 14'
18
- - name : Get yarn cache directory path
19
- id : yarn-cache-dir-path
20
- run : echo "::set-output name=dir::$(yarn cache dir)"
21
- - uses : actions/cache@v2
22
- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
17
+ node-version : ' 20'
18
+ - uses : pnpm/action-setup@v2
19
+ - uses : actions/cache@v3
20
+ name : Setup pnpm cache
23
21
with :
24
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
25
- key : ${{ runner.os }}-yarn- ${{ hashFiles('**/yarn. lock') }}
22
+ path : ${{ env.STORE_PATH }}
23
+ key : ${{ runner.os }}-pnpm-store- ${{ hashFiles('**/pnpm- lock.yaml ') }}
26
24
restore-keys : |
27
- ${{ runner.os }}-yarn -
25
+ ${{ runner.os }}-pnpm-store -
28
26
- name : Install Dependencies
29
- run : yarn
27
+ run : pnpm install --frozen-lockfile --non-interactive
30
28
- name : Semantic Release
31
- run : npx semantic-release@15.13.30
29
+ run : npx semantic-release
32
30
env :
33
31
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
32
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Seamless integration between [Rollup](https://github.com/rollup/rollup) and [Pos
12
12
## Install
13
13
14
14
``` bash
15
- yarn add postcss rollup-plugin-postcss --dev
15
+ pnpm add postcss rollup-plugin-postcss --dev
16
16
```
17
17
18
18
## Usage
@@ -90,9 +90,9 @@ postcss({
90
90
91
91
Install corresponding dependency:
92
92
93
- - For ` Sass ` install ` node-sass ` : ` yarn add node-sass --dev`
94
- - For ` Stylus ` Install ` stylus ` : ` yarn add stylus --dev`
95
- - For ` Less ` Install ` less ` : ` yarn add less --dev`
93
+ - For ` Sass ` install ` node-sass ` : ` pnpm add node-sass --dev`
94
+ - For ` Stylus ` Install ` stylus ` : ` pnpm add stylus --dev`
95
+ - For ` Less ` Install ` less ` : ` pnpm add less --dev`
96
96
97
97
That's it, you can now import ` .styl ` ` .scss ` ` .sass ` ` .less ` files in your library.
98
98
Original file line number Diff line number Diff line change 3
3
"version" : " 4.0.0" ,
4
4
"description" : " Seamless integration between Rollup and PostCSS" ,
5
5
"main" : " dist/index.js" ,
6
+ "packageManager" : " pnpm@8.12.1" ,
6
7
"files" : [
7
8
" dist" ,
8
9
" types/index.d.ts"
9
10
],
10
11
"scripts" : {
11
- "test" : " npm run lint && jest" ,
12
- "test:cov" : " npm run lint && jest --coverage" ,
12
+ "test" : " pnpm run lint && jest" ,
13
+ "test:cov" : " pnpm run lint && jest --coverage" ,
13
14
"build" : " bili" ,
14
15
"lint" : " xo" ,
15
- "prepublishOnly" : " npm run build"
16
+ "prepublishOnly" : " pnpm run build"
16
17
},
17
18
"repository" : {
18
19
"type" : " git" ,
44
45
"fs-extra" : " ^9.0.1" ,
45
46
"jest" : " ^26.6.3" ,
46
47
"less" : " ^3.12.2" ,
47
- "node-sass" : " ^5 .0.0" ,
48
+ "node-sass" : " ^9 .0.0" ,
48
49
"postcss" : " ^8.2.7" ,
49
50
"rollup" : " ^2.34.2" ,
50
51
"stylus" : " ^0.54.8" ,
You can’t perform that action at this time.
0 commit comments