diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a772fc5..9d35028 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,6 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - fetch-tags: true - name: Build 🏗️ uses: ./.github/actions/build @@ -34,19 +33,22 @@ jobs: - name: Sync release info 📝 id: sync_release run: | + tag=v$(node -e "console.log(require('./package.json').version)") git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" git config pull.ff true git add . && git commit -m "CI: @sliit-foss/automatic-versioning - sync release" || true - git tag "v$(node -e "console.log(require('./package.json').version)")" || true + git tag $tag || true git pull --rebase && git push origin --tags - echo "version=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT + echo "tag=$tag" >> $GITHUB_OUTPUT - name: Create release on GitHub 📝 uses: ncipollo/release-action@v1 with: generateReleaseNotes: true - tag: ${{steps.sync_release.outputs.version}} + skipIfReleaseExists: true + makeLatest: true + tag: ${{steps.sync_release.outputs.tag}} site-release: name: Site Release diff --git a/package.json b/package.json index 741df9a..be178ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sliit-foss/bashaway-ui", - "version": "0.10.3", + "version": "0.10.4", "description": "Component library for Bashaway 2023", "main": "index.js", "private": false,