Skip to content

Commit e5e288f

Browse files
committed
fix(ci): force trusted publish auth path
1 parent 72fbb54 commit e5e288f

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
uses: actions/setup-node@v4
2424
with:
2525
node-version: 20
26-
registry-url: https://registry.npmjs.org
2726

2827
- name: Set up Yarn
2928
run: |
@@ -110,10 +109,14 @@ jobs:
110109

111110
- name: Publish To npm
112111
if: steps.version.outputs.changed == 'true'
113-
run: npx yakumo publish --registry https://registry.npmjs.org --debug
112+
shell: bash
113+
run: |
114+
printf 'registry=https://registry.npmjs.org/\n' > "$RUNNER_TEMP/.npmrc"
115+
export NPM_CONFIG_USERCONFIG="$RUNNER_TEMP/.npmrc"
116+
npx yakumo publish --registry https://registry.npmjs.org --debug
114117
env:
115118
NPM_CONFIG_PROVENANCE: true
116-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
119+
NODE_AUTH_TOKEN: ''
117120

118121
- name: Save Version Cache
119122
if: steps.version.outputs.changed == 'true' && success()

0 commit comments

Comments
 (0)