Skip to content

Commit 34ed280

Browse files
authored
fix broken publish to npm (#594)
NPM discontinued classic tokens, workflows have to use OIDC now
1 parent 6e49a6c commit 34ed280

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/build-release.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -253,14 +253,11 @@ jobs:
253253
with:
254254
name: release-build
255255
path: _release/
256-
- uses: JS-DevTools/npm-publish@v1
256+
- name: Publish to npm with tag ${{ github.event.inputs.tag_name }}
257257
if: ${{ github.event.inputs.tag_name }}
258-
with:
259-
token: ${{ secrets.NPM_TOKEN }}
260-
package: ./_release/package.json
261-
tag: ${{ github.event.inputs.tag_name }}
262-
- uses: JS-DevTools/npm-publish@v1
258+
working-directory: _release
259+
run: yarn publish --tag ${{ github.event.inputs.tag_name }}
260+
- name: Publish to npm with tag latest
263261
if: ${{ !github.event.inputs.tag_name }}
264-
with:
265-
token: ${{ secrets.NPM_TOKEN }}
266-
package: ./_release/package.json
262+
working-directory: _release
263+
run: yarn publish

0 commit comments

Comments
 (0)