cmyr-template-cli 1.18.0 → 1.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmyr-template-cli",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "description": "草梅友仁自制的项目模板创建器",
5
5
  "author": "CaoMeiYouRen",
6
6
  "license": "MIT",
@@ -11,23 +11,28 @@ jobs:
11
11
  - uses: actions/checkout@v3
12
12
  with:
13
13
  persist-credentials: false
14
+ - name: Setup pnpm
15
+ uses: pnpm/action-setup@v2
16
+ with:
17
+ version: "latest"
14
18
  - name: Setup Node.js environment
15
19
  uses: actions/setup-node@v3
16
20
  with:
17
21
  node-version: "lts/*"
18
- - name: Get yarn cache directory path
19
- id: yarn-cache-dir-path
20
- run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
21
- - uses: actions/cache@v3
22
- id: yarn-cache
22
+ - name: Cache Dependency
23
+ uses: actions/cache@v3
23
24
  with:
24
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
25
- key: ${{ runner.os }}-yarn-${{ hashFiles('package.json') }}
26
- restore-keys: ${{ runner.os }}-yarn-
27
- - run: yarn
28
- - run: yarn run lint
29
- - run: yarn run build
25
+ path: |
26
+ ~/.npm
27
+ ~/cache
28
+ !~/cache/exclude
29
+ **/node_modules
30
+ key: pnpm-${{ runner.os }}-${{ hashFiles('package.json') }}
31
+ restore-keys: pnpm-${{ runner.os }}
32
+ - run: pnpm i --fix-lockfile
33
+ - run: pnpm run lint
34
+ - run: pnpm run build
30
35
  - env:
31
36
  GH_TOKEN: ${{ secrets.GH_TOKEN }}
32
37
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33
- run: yarn run release
38
+ run: pnpm run release
@@ -6,19 +6,24 @@ jobs:
6
6
  runs-on: ubuntu-latest
7
7
  steps:
8
8
  - uses: actions/checkout@v3
9
+ - name: Setup pnpm
10
+ uses: pnpm/action-setup@v2
11
+ with:
12
+ version: "latest"
9
13
  - name: Setup Node.js@lts environment
10
14
  uses: actions/setup-node@v3
11
15
  with:
12
16
  node-version: "lts/*"
13
- - name: Get yarn cache directory path
14
- id: yarn-cache-dir-path
15
- run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
16
- - uses: actions/cache@v3
17
- id: yarn-cache
17
+ - name: Cache Dependency
18
+ uses: actions/cache@v3
18
19
  with:
19
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
20
- key: ${{ runner.os }}-yarn-${{ hashFiles('package.json') }}
21
- restore-keys: ${{ runner.os }}-yarn-
22
- - run: yarn
23
- - run: yarn run lint
24
- - run: yarn run build
20
+ path: |
21
+ ~/.npm
22
+ ~/cache
23
+ !~/cache/exclude
24
+ **/node_modules
25
+ key: pnpm-${{ runner.os }}-${{ hashFiles('package.json') }}
26
+ restore-keys: pnpm-${{ runner.os }}
27
+ - run: pnpm i --fix-lockfile
28
+ - run: pnpm run lint
29
+ - run: pnpm run build