We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c686d7 commit e3ba14aCopy full SHA for e3ba14a
1 file changed
.github/workflows/publish.yml
@@ -36,6 +36,12 @@ jobs:
36
- run: npm install -g npm@latest # ensure that the globally installed npm is new enough to support OIDC
37
- run: pnpm install --frozen-lockfile
38
- name: Publish to NPM
39
- run: NPM_CONFIG_PROVENANCE=true pnpm release-plan publish --github-prerelease
+ # 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
46
env:
47
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
0 commit comments