Skip to content

Commit 63e6ae0

Browse files
committed
fix(ci): use NPM_CONFIG_PROVENANCE env var instead of --provenance flag
lerna-lite doesn't support --provenance as a CLI argument. The provenance setting must be passed via environment variable.
1 parent 7643df5 commit 63e6ae0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/graduate.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,6 @@ jobs:
4242
git reset --hard
4343
git config --global user.name ${{ secrets.GIT_USER }}
4444
git config --global user.email ${{ secrets.GIT_EMAIL }}
45-
npm run graduate -- --yes --provenance
45+
npm run graduate -- --yes
46+
env:
47+
NPM_CONFIG_PROVENANCE: true

scripts/default-registry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
#!/bin/bash
33

4-
yarn lerna publish --dist-tag=next --preid=beta --conventional-prerelease --yes --provenance
4+
NPM_CONFIG_PROVENANCE=true yarn lerna publish --dist-tag=next --preid=beta --conventional-prerelease --yes

0 commit comments

Comments
 (0)