Skip to content

Commit 6c93b05

Browse files
authored
ci: Don't publish npm package with beta string as latest tag (#156)
1 parent bfe88e1 commit 6c93b05

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ jobs:
1919
registry-url: "https://registry.npmjs.org"
2020

2121
- run: npm ci
22-
- run: cd packages/deck.gl-layers && npm publish
22+
- name: Read version and publish
23+
run: |
24+
VERSION=$(jq -r .version package.json)
25+
if [[ "$VERSION" == *alpha* || "$VERSION" == *beta* ]]; then
26+
npm publish --tag beta
27+
else
28+
npm publish
29+
fi
30+
working-directory: packages/deck.gl-layers
2331
env:
2432
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)