Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
kentsday committed Jul 29, 2024
1 parent bb7ec9f commit 4e32042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
REGISTRY: //gitlab.com/api/v4/projects/37663507/packages/npm/
- run: |
# set version from timestamp if current branch is main
if [ "${GITHUB_REF}" = "refs/heads/main" || "${GITHUB_REF}" = "refs/heads/release" ]; then
if [ "${{ github.ref }}" = "main" or "${{ github.ref }}" = "release" ]; then
Version=1.0.0-alpha.$(date +"%Y%m%d%H%M%S")
else
Version=$(git describe --tags --abbrev=0)
Expand Down

0 comments on commit 4e32042

Please sign in to comment.