Skip to content

Commit 87ab2fb

Browse files
Merge pull request #6 from kunai-consulting/fix-alpha-version-npm-package-publish
ci: Publish alpha versions with alpha tag
2 parents 107eeaa + 7a31a6b commit 87ab2fb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release-package.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828
node-version: 14
2929
registry-url: https://npm.pkg.github.com/
3030
- run: yarn
31-
- run: npm publish
31+
- run: |
32+
if [[ $(npx -c 'echo $npm_package_version') == *alpha* ]]; then
33+
npm publish --tag alpha
34+
else
35+
npm publish
36+
fi
3237
env:
3338
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)