diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 42dcb2a..2bb1b08 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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} \ No newline at end of file + yarn publish --frozen-lockfile --non-interactive --no-git-tag-version --no-commit-hooks --new-version ${Version} packages/sdk \ No newline at end of file