Skip to content

Commit 31242bb

Browse files
committed
fix github actions npm compatible problems
1 parent 2d9270f commit 31242bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
- uses: actions/setup-node@v4
1313
- run: npm install
1414
- run: npm run review
15-
- run: npm login
15+
16+
# The --legacy-peer-deps is needed because of compatibility reasons.
17+
- run: npm login --legacy-peer-deps
1618
env:
1719
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1820
- run: npm publish

0 commit comments

Comments
 (0)