Skip to content

Commit 1b4595d

Browse files
committed
build(ci): restore old lerna publish format with --ignore-scripts
1 parent acfbaee commit 1b4595d

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,22 @@ jobs:
7575
- name: Publish to NPM (OIDC Auth)
7676
run: |
7777
TAG="${GITHUB_REF#refs/tags/}"
78+
BASE_CMD="pnpm lerna publish from-package --ignore-scripts"
7879
7980
echo "Publishing tag: $TAG via OIDC"
8081
8182
if [[ "$TAG" == *"-alpha."* ]]; then
82-
pnpm exec lerna publish from-package --pre-dist-tag=alpha --yes
83+
$BASE_CMD --dist-tag alpha
8384
elif [[ "$TAG" == *"-beta."* ]]; then
84-
pnpm exec lerna publish from-package --dist-tag=beta --yes
85+
$BASE_CMD --dist-tag beta
8586
elif [[ "$TAG" == v1* ]]; then
86-
pnpm exec lerna publish from-package --dist-tag=v1 --yes
87+
$BASE_CMD --dist-tag v1
8788
elif [[ "$TAG" == v2* ]]; then
88-
pnpm exec lerna publish from-package --dist-tag=v2 --yes
89+
$BASE_CMD --dist-tag v2
8990
elif [[ "$TAG" == v3* ]]; then
90-
pnpm exec lerna publish from-package --dist-tag=v3 --yes
91+
$BASE_CMD --dist-tag v3
9192
else
92-
pnpm exec lerna publish from-package --yes
93+
$BASE_CMD
9394
fi
9495
env:
9596
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)