File tree Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,28 @@ jobs:
13
13
- uses : actions/checkout@v3
14
14
- uses : actions/setup-node@v3
15
15
with :
16
- node-version : ' 20.x' # Actualización de la versión de Node.js
16
+ node-version : ' 20.x'
17
17
registry-url : ' https://registry.npmjs.org/'
18
- - run : npm config list
19
- - run : npm whoami
20
- - run : npm install
21
- - run : npm test
22
- - run : npm publish
18
+
19
+ # Agregamos NODE_AUTH_TOKEN a todos los pasos que interactúan con npm
20
+ - name : Debug npm configuration
21
+ run : npm config list
22
+ env :
23
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
24
+
25
+ - name : Verify npm authentication
26
+ run : npm whoami
27
+ env :
28
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
29
+
30
+ # Usamos 'npm ci' en lugar de 'npm install' para una instalación más consistente
31
+ - name : Install dependencies
32
+ run : npm ci
33
+
34
+ - name : Run tests
35
+ run : npm test
36
+
37
+ - name : Publish to npm
38
+ run : npm publish
23
39
env :
24
40
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments