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: 5 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ jobs:
run: |
echo "is pre-release: ${{ github.event.release.prerelease }}"
echo "publish triggered on: ${{ github.ref_type }}"
if [[ "${{ github.ref_type }}" == "tag" ]] &&
if ([[ "${{ github.ref_type }}" == "tag" ]] &&
[[ "${{ github.event.release.prerelease }}" == "true" ]] &&
[[ "${{ github.ref_name }}" == "${{ steps.package-info.outputs.version }}" ]]; then
echo "publishing prerelease with alpha tag from tag"
# npm publish --access public --tag alpha
elif [[ "${{ github.ref_type }}" == "branch" ]] &&
[[ "${{ github.ref_name }}" == *"alpha"* ]]; then
echo "publishing prerelease with alpha tag from branch"
[[ "${{ github.ref_name }}" == "${{ steps.package-info.outputs.version }}" ]]) ||
([[ "${{ github.ref_type }}" == "branch" ]] &&
[[ "${{ github.ref_name }}" == *"alpha"* ]]); then
echo "publishing prerelease with alpha tag from ${{ github.ref_type }}"
# npm publish --access public --tag alpha
else
echo "publishing standard release"
Expand Down
Loading