Skip to content

Commit 5facff0

Browse files
committed
rc tag
1 parent 6a9bb45 commit 5facff0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/node_sdk_publish.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ jobs:
9090
cat package.json
9191
9292
- name: Publish package to NPM
93-
run: yarn publish --access public
93+
run: |
94+
if [[ "${{ github.event.release.prerelease }}" == "true" ]]; then
95+
echo "Publishing as a release candidate (rc)..."
96+
yarn publish --access public --tag rc
97+
else
98+
echo "Publishing as the latest release..."
99+
yarn publish --access public
100+
fi
94101
env:
95102
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
103+

0 commit comments

Comments
 (0)