Skip to content

Commit

Permalink
Fix: release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Oct 15, 2023
1 parent 56d38f3 commit fbb63b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Build 🏗️
uses: ./.github/actions/build
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit fbb63b3

Please sign in to comment.