Skip to content

Commit 6a96d50

Browse files
committed
Actualizar configuración de CI y Release para usar pnpm en lugar de npm
1 parent 7485160 commit 6a96d50

4 files changed

Lines changed: 27 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,24 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21+
- uses: pnpm/action-setup@v4
22+
with:
23+
version: 9
24+
2125
- name: Setup Node.js ${{ matrix.node-version }}
2226
uses: actions/setup-node@v4
2327
with:
2428
node-version: ${{ matrix.node-version }}
25-
cache: npm
29+
cache: pnpm
2630

2731
- name: Install dependencies
28-
run: npm ci
32+
run: pnpm install --frozen-lockfile
2933

3034
- name: Lint
31-
run: npm run lint
35+
run: pnpm run lint
3236

3337
- name: Test
34-
run: npm test
38+
run: pnpm test
3539

3640
- name: Build
37-
run: npm run build
41+
run: pnpm run build

.github/workflows/release.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,28 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v4
2323
with:
24-
# Necesario para que changeset pueda leer todo el historial
2524
fetch-depth: 0
2625

26+
- uses: pnpm/action-setup@v4
27+
with:
28+
version: 9
29+
2730
- uses: actions/setup-node@v4
2831
with:
29-
node-version: 20
32+
node-version: 24
3033
registry-url: https://registry.npmjs.org
31-
cache: npm
34+
cache: pnpm
3235

3336
- name: Install dependencies
34-
run: npm ci
37+
run: pnpm install --frozen-lockfile
3538

3639
- name: Build
37-
run: npm run build
40+
run: pnpm run build
3841

3942
- name: Create Version PR or Publish
4043
uses: changesets/action@v1
4144
with:
42-
# Script que changeset invoca al publicar (después de bumps)
43-
publish: npm run release
44-
# Mensaje del commit que actualiza versiones
45+
publish: pnpm run release
4546
commit: "chore: version packages"
4647
title: "chore: version packages"
4748
env:

commitlint.config.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ export default {
33
rules: {
44
'subject-case': [2, 'never', ['upper-case']],
55
'body-max-line-length': [1, 'always', 120],
6-
},
7-
'type-enum':[
8-
2,
9-
'always',
10-
[
6+
'type-enum': [
7+
2,
8+
'always',
9+
[
1110
'ci', // Continuous Integration configuration and pipeline changes
1211
'test', // Adding or updating tests
1312
'build', // Build system and dependencies changes
@@ -21,7 +20,8 @@ export default {
2120
'perf', // Performance improvements
2221
'refactor', // Code refactoring without feature or bug changes
2322
'revert', // Reverting previous commits
24-
'style' // Code style changes (formatting, semicolons, etc)
25-
]
26-
],
23+
'style', // Code style changes (formatting, semicolons, etc)
24+
],
25+
],
26+
},
2727
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
],
3636
"scripts": {
3737
"prepare": "husky",
38-
"build": "npm run build:esm && npm run build:cjs && npm run build:types",
38+
"build": "pnpm run build:esm && pnpm run build:cjs && pnpm run build:types",
3939
"build:esm": "tsc -p tsconfig.esm.json",
4040
"build:cjs": "tsc -p tsconfig.cjs.json && node -e \"require('fs').writeFileSync('dist/cjs/package.json', JSON.stringify({type:'commonjs'},null,2))\"",
4141
"build:types": "tsc -p tsconfig.types.json",

0 commit comments

Comments
 (0)