Skip to content

Commit 274f981

Browse files
committed
Atualizado workflow para GitHub Actions usar Trusted Publishing via OIDC e remover necessidade de NPM_TOKEN
1 parent 77c5801 commit 274f981

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Build and Release
22

33
permissions:
44
contents: write
5+
id-token: write
56

67
on:
78
push:
@@ -18,6 +19,7 @@ jobs:
1819
- uses: actions/setup-node@v4
1920
with:
2021
node-version: 20
22+
registry-url: 'https://registry.npmjs.org'
2123

2224
- name: Install dependencies
2325
run: npm install
@@ -40,6 +42,4 @@ jobs:
4042
draft: false
4143

4244
- name: Publish to npm
43-
run: npm publish --access public
44-
env:
45-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
45+
run: npm publish --access public

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gupy-sync",
3-
"version": "0.2.6",
3+
"version": "0.2.7",
44
"description": "CLI para sincronizar dados do LinkedIn com a Gupy",
55
"type": "module",
66

0 commit comments

Comments
 (0)