Skip to content

Commit 4f7e31e

Browse files
committed
fix: weorkflow
1 parent 8b538f3 commit 4f7e31e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/publish.reusable.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
is-prerelease:
1010
type: string
1111
required: true
12-
default: "false"
1312

1413
jobs:
1514
publish:
@@ -52,17 +51,17 @@ jobs:
5251
- name: Publish npm packages as nightly
5352
if: inputs.is-prerelease == 'true'
5453
run: |
55-
for package in packages/@pglt/*; do
56-
npm publish $package --tag nightly --access public --provenance
54+
for package in packages/@pglt/*; do
55+
npm publish "$package" --tag nightly --access public --provenance
5756
done
5857
env:
5958
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} #
6059

6160
- name: Publish npm packages as latest
6261
if: inputs.is-prerelease != 'true'
6362
run: |
64-
for package in packages/@pglt/*; do
65-
npm publish $package --tag latest --access public --provenance
63+
for package in packages/@pglt/*; do
64+
npm publish "$package" --tag latest --access public --provenance
6665
done
6766
env:
6867
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)