Skip to content

Commit 4533754

Browse files
chore: atualiza ação de setup para Node.js v6 e adiciona atualização do npm
1 parent dd56bde commit 4533754

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ runs:
55
using: composite
66
steps:
77
- name: Setup Node.js
8-
uses: actions/setup-node@v3
8+
uses: actions/setup-node@v6
99
with:
1010
node-version-file: .nvmrc
11-
registry-url: https://registry.npmjs.org/
11+
12+
- name: Update npm to latest
13+
run: npm install -g npm@latest
14+
shell: bash
1215

1316
- name: Cache dependencies
1417
id: yarn-cache

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
tags:
99
- "v[0-9]+.[0-9]+.[0-9]+"
1010

11+
permissions:
12+
contents: read
13+
id-token: write # Obrigatorio para autenticação OIDC
14+
1115
jobs:
1216
build-and-publish-library:
1317
runs-on: ubuntu-latest
@@ -24,4 +28,4 @@ jobs:
2428
- name: Publish package
2529
run: npm publish --access public
2630
env:
27-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
31+
NPM_CONFIG_PROVENANCE: "true"

0 commit comments

Comments
 (0)