Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit c0d3755

Browse files
chore: use corepack for github workflows
1 parent 0931037 commit c0d3755

File tree

4 files changed

+121
-115
lines changed

4 files changed

+121
-115
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
with:
2121
node-version: 16.x
2222

23+
- run: corepack enable
24+
2325
- name: Setup
2426
run: npm i -g @antfu/ni
2527

@@ -39,6 +41,8 @@ jobs:
3941
with:
4042
node-version: 16.x
4143

44+
- run: corepack enable
45+
4246
- name: Setup
4347
run: npm i -g @antfu/ni
4448

@@ -65,6 +69,8 @@ jobs:
6569
with:
6670
node-version: ${{ matrix.node }}
6771

72+
- run: corepack enable
73+
6874
- name: Setup
6975
run: npm i -g @antfu/ni
7076

.github/workflows/release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@ jobs:
1313
with:
1414
fetch-depth: 0
1515

16-
- name: Install pnpm
17-
uses: pnpm/action-setup@v2
18-
1916
- name: Use Node.js v16
2017
uses: actions/setup-node@v3
2118
with:
2219
node-version: 16
2320
registry-url: https://registry.npmjs.org/
24-
cache: pnpm
2521

26-
- name: Install
27-
run: pnpm install
22+
- run: corepack enable
2823

29-
- run: npx conventional-github-releaser -p angular
30-
continue-on-error: true
31-
env:
32-
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}
24+
- name: Setup
25+
run: npm i -g @antfu/ni
26+
27+
- name: Install
28+
run: nci
3329

3430
- name: Build
35-
run: pnpm run build
31+
run: nr build
3632

3733
- name: Publish to npm
38-
run: pnpm publish --access public --no-git-checks
34+
run: npm publish --access public
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
38+
- run: npx conventional-github-releaser -p angular
3939
env:
40-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
40+
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@
5454
},
5555
"devDependencies": {
5656
"@antfu/eslint-config": "^0.25.0",
57-
"@types/node": "^17.0.36",
57+
"@types/node": "^17.0.38",
5858
"bumpp": "^7.1.1",
5959
"eslint": "^8.16.0",
6060
"pnpm": "^7.1.7",
6161
"typescript": "^4.7.2",
6262
"unbuild": "^0.7.4",
6363
"vite": "^2.9.9",
64-
"vitest": "^0.13.0",
64+
"vitest": "^0.13.1",
6565
"vue": "^3.2.36",
6666
"vue-tsc": "^0.35.2"
6767
}

0 commit comments

Comments
 (0)