Skip to content

Commit e2c9606

Browse files
authored
fix: fix publish flow (#11)
* fix: fix publish flow
1 parent cc6c461 commit e2c9606

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
permissions:
13+
id-token: write
1314
contents: write
1415
pull-requests: write
1516

@@ -39,10 +40,15 @@ jobs:
3940
registry-url: "https://registry.npmjs.org"
4041
cache: "npm"
4142

43+
# Ensure npm 11.5.1 or later is installed
44+
- name: Update npm
45+
run: npm install -g npm@latest
46+
4247
- run: npm ci
4348

4449
- run: npm run build
4550

46-
- run: npm publish --access public
47-
env:
48-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
- run: git config --global user.email "y-infra@yandex.ru"
52+
- run: git config --global user.name "y-infra"
53+
54+
- run: npm publish

0 commit comments

Comments
 (0)