Skip to content

Commit 92f0237

Browse files
fix publish command
1 parent c87e83e commit 92f0237

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish npm Package
33
on:
44
push:
55
tags:
6-
- "v*.*.*-*"
6+
- v*
77

88
jobs:
99
validate:
@@ -36,7 +36,12 @@ jobs:
3636
run: npm run build:packages
3737

3838
- name: Publish to NPM
39-
run: npm publish --workspaces packages/** --access public --provenace
39+
run: |
40+
for d in packages/*; do
41+
if [ -d "$d" ]; then
42+
npm publish "$d" --access public --provenance
43+
fi
44+
done
4045
env:
4146
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4247

0 commit comments

Comments
 (0)