Skip to content

Commit

Permalink
CI: added release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Oct 15, 2023
1 parent 25abfcd commit 56d38f3
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository πŸ›ŽοΈ
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Build πŸ—οΈ
uses: ./.github/actions/build
Expand All @@ -27,23 +28,32 @@ jobs:
- name: Bump version πŸ“
run: pnpm bump-version

- name: Publish πŸš€
- name: Publish to registry πŸš€
run: pnpm release

- name: Update release info πŸ“
- name: Sync release info πŸ“
id: sync_release
run: |
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 pull --rebase && git push origin
git tag "v$(node -e "console.log(require('./package.json').version)")" || true
git pull --rebase && git push origin --tags
echo "version=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
- name: Create release on GitHub πŸ“
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
tag: ${{steps.sync_release.outputs.version}}

site-release:
name: Site Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository πŸ›ŽοΈ
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build πŸ—οΈ
uses: ./.github/actions/build
Expand Down

0 comments on commit 56d38f3

Please sign in to comment.