Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,13 @@ jobs:
- run: yarn playwright install
- run: yarn test
- run: yarn build:lib
- name: Read version and publish
run: npm publish --access public
- name: Publish
run: |
VERSION=$(node -p "require('./package.json').version")
if [[ "$VERSION" == *-* ]]; then
TAG="${VERSION#*-}"
TAG="${TAG%%.*}"
npm publish --access public --tag "$TAG"
else
npm publish --access public
fi
Loading