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 4e32042 commit e0baee1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
env:
REGISTRY: //gitlab.com/api/v4/projects/37663507/packages/npm/
- run: |
# set version from timestamp if current branch is main
if [ "${{ github.ref }}" = "main" or "${{ github.ref }}" = "release" ]; then
Version=1.0.0-alpha.$(date +"%Y%m%d%H%M%S")
# set version from timestamp if current branch is main
if [ "${{ github.ref }}" = "main" ] || [ "${{ github.ref }}" = "release" ]; then
Version=1.0.0-alpha.$(date +"%Y%m%d%H%M%S")
else
Version=$(git describe --tags --abbrev=0)
Version=$(git describe --tags --abbrev=0)
fi
echo "Version: $Version"
yarn publish packages/sdk --frozen-lockfile --non-interactive --no-git-tag-version --no-commit-hooks --new-version ${Version}
yarn publish --frozen-lockfile --non-interactive --no-git-tag-version --no-commit-hooks --new-version ${Version} packages/sdk

0 comments on commit e0baee1

Please sign in to comment.