We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a022690 commit 0c7d7aeCopy full SHA for 0c7d7ae
1 file changed
.github/workflows/release.yaml
@@ -24,5 +24,13 @@ jobs:
24
- run: yarn playwright install
25
- run: yarn test
26
- run: yarn build:lib
27
- - name: Read version and publish
28
- run: npm publish --access public
+ - name: Publish
+ run: |
29
+ VERSION=$(node -p "require('./package.json').version")
30
+ if [[ "$VERSION" == *-* ]]; then
31
+ TAG="${VERSION#*-}"
32
+ TAG="${TAG%%.*}"
33
+ npm publish --access public --tag "$TAG"
34
+ else
35
+ npm publish --access public
36
+ fi
0 commit comments