Skip to content

Commit 6428739

Browse files
committed
Use correct alpha/beta tag with npm publish
1 parent 18c7aba commit 6428739

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,14 @@ jobs:
112112
restore-keys: |
113113
${{ runner.os }}-yarn-
114114
- run: yarn dev
115-
- run: npm publish
115+
- run: |
116+
if [[ "$GITHUB_REF" =~ -alpha ]]; then
117+
npm publish --tag alpha
118+
elif [[ "$GITHUB_REF" =~ -beta ]]; then
119+
npm publish --tag beta
120+
else
121+
npm publish
122+
fi
116123
deploy:
117124
name: Deploy to GitHub Pages
118125
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)