Skip to content

Commit b71c224

Browse files
authored
Merge pull request #109 from permitio/PER-11394-rc-tag
rc tag
2 parents 6a9bb45 + 5facff0 commit b71c224

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.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)