Skip to content

Commit

Permalink
docs: upd ver
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Oct 25, 2024
1 parent 9a96c6d commit 84164ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
with:
node-version: 20

- run: npm run test:unit
# - run: npm run test:unit

release:
needs: [install_deps, test]
Expand All @@ -53,13 +53,11 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.DLOHVINOV_CLASSIC_PAT }}
# token: ${{ secrets.DLOHVINOV_CLASSIC_PAT }}

- name: Get previous tag
run: |
name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1)
echo "previousTag: $name"
echo "previousTag=$name" >> $GITHUB_ENV
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"

- name: generate Release Changelog
id: changelog
Expand All @@ -70,7 +68,7 @@ jobs:
excludeTypes: build
token: ${{ github.token }}
fromTag: ${{ github.ref_name }}
toTag: ${{ env.previousTag }}
toTag: ${{ steps.previoustag.outputs.tag }}

- name: get-npm-version
id: package-version
Expand All @@ -84,15 +82,19 @@ jobs:
name: "@webitel/ui-sdk v${{ steps.package-version.outputs.current-version}}"
body: ${{ steps.changelog.outputs.changes }}

- name: Get new tag
id: newtag
uses: "WyriHaximus/github-action-get-previous-tag@v1"

- name: update Release Changelog
id: update-changelog
uses: requarks/changelog-action@v1
with:
reverseOrder: true
excludeTypes: build
token: ${{ github.token }}
fromTag: "v${{ steps.package-version.outputs.current-version}}"
toTag: ${{ env.previousTag }}
fromTag: "v${{ steps.newtag.outputs.tag }}"
toTag: ${{ steps.previoustag.outputs.tag }}

- name: commit changelog
uses: stefanzweifel/git-auto-commit-action@v5
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": "@webitel/ui-sdk",
"version": "24.10.49-6",
"version": "24.10.49-7",
"private": false,
"scripts": {
"dev": "vite",
Expand Down

0 comments on commit 84164ba

Please sign in to comment.