Skip to content

Commit 13d7e13

Browse files
authored
Merge pull request #750 from materialsproject/phonon_animation
add condition on publishing rc
2 parents 81c000a + e86ead0 commit 13d7e13

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/publish-npm.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
- name: Publish to NPM
3333
run: |
3434
echo Publishing to test repo $NODE_AUTH_TOKEN
35-
npm publish
35+
VERSION=$(node -p "require('./package.json').version")
36+
if [[ "$VERSION" == *"-rc"* ]]; then
37+
npm publish --tag rc
38+
else
39+
npm publish
40+
fi
3641
env:
3742
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)