Skip to content

Commit d4f9ab4

Browse files
committed
chore: replace pnpm with npm in CI workflows and add .npmrc for registry configuration
1 parent e3a2fa0 commit d4f9ab4

3 files changed

Lines changed: 19 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,20 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919

20-
- name: Install pnpm
21-
uses: pnpm/action-setup@v2
22-
with:
23-
version: 10
24-
25-
- name: Use Node.js ${{ matrix.node-version }}
20+
- name: Setup Node.js ${{ matrix.node-version }}
2621
uses: actions/setup-node@v4
2722
with:
2823
node-version: ${{ matrix.node-version }}
29-
cache: 'pnpm'
24+
cache: 'npm'
3025

3126
- name: Install dependencies
32-
run: pnpm install
27+
run: npm ci
28+
29+
- name: Lint
30+
run: npm run lint
3331

3432
- name: Build
35-
run: pnpm run build
33+
run: npm run build
34+
35+
- name: Test
36+
run: npm test

.github/workflows/release.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,22 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14-
- name: Install pnpm
15-
uses: pnpm/action-setup@v2
16-
with:
17-
version: 10
1814
- name: Setup Node.js
1915
uses: actions/setup-node@v4
2016
with:
2117
node-version: '20.x'
2218
registry-url: 'https://registry.npmjs.org'
2319

2420
- name: Install dependencies
25-
run: pnpm install
21+
run: npm ci
22+
23+
- name: Build
24+
run: npm run build
2625

27-
- name: Build all packages
28-
run: pnpm run build
26+
- name: Test
27+
run: npm test
2928

30-
- name: Publish core package
31-
if: startsWith(github.ref, 'refs/tags/v')
32-
working-directory: ./packages/core
29+
- name: Publish
3330
run: npm publish --access public
3431
env:
35-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
32+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org/

0 commit comments

Comments
 (0)