Skip to content

Commit e3ba14a

Browse files
committed
add conditional to release-plan publish based on branch
1 parent 8c686d7 commit e3ba14a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ jobs:
3636
- run: npm install -g npm@latest # ensure that the globally installed npm is new enough to support OIDC
3737
- run: pnpm install --frozen-lockfile
3838
- name: Publish to NPM
39-
run: NPM_CONFIG_PROVENANCE=true pnpm release-plan publish --github-prerelease
39+
# pass --github-prerelease when we are only branch other than release
40+
run: |
41+
if [ ${{ github.ref }} = "refs/heads/release" ]; then
42+
pnpm release-plan publish
43+
else
44+
pnpm release-plan publish --github-prerelease
45+
fi
4046
env:
4147
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)