Skip to content

Commit 4bba8da

Browse files
authored
ci: fix publish workflow (#224)
closes #223
1 parent e008cd7 commit 4bba8da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
node-version: 22
2020
cache: yarn
2121
cache-dependency-path: "**/yarn.lock"
22+
registry-url: "https://registry.npmjs.org"
2223

2324
- name: Install Packages
2425
run: yarn install
@@ -30,9 +31,10 @@ jobs:
3031
run: npx extract-changelog-release > RELEASE_BODY.md
3132

3233
- name: Publish to NPM
33-
run: npm publish
34+
run: yarn npm publish
3435
env:
3536
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3638

3739
- name: Create GitHub Release
3840
uses: ncipollo/release-action@v1

0 commit comments

Comments
 (0)