Skip to content

Commit

Permalink
feat: update auto tag version when bump (#32)
Browse files Browse the repository at this point in the history
* feat: update auto tag version when bump
  • Loading branch information
khoilen authored Jan 7, 2025
1 parent 05ce7a1 commit 03c19b6
Show file tree
Hide file tree
Showing 5 changed files with 411 additions and 844 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,19 @@ jobs:
git config user.email '[email protected]'
- name: bump version
run: pnpm version ${{ github.event.inputs.version }}
id: bump-version
run: |
pnpm version ${{ github.event.inputs.version }}
version=$(jq -r '.version' apps/nt-stylesheet/package.json)
echo "Bumped version: $version"
echo "new_version=$version" >> $GITHUB_ENV
working-directory: apps/nt-stylesheet
continue-on-error: true

- name: Push latest version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: git push origin main --follow-tags
run: |
git tag "v${{ steps.bump-version.outputs.new_version }}"
git push origin "v${{ steps.bump-version.outputs.new_version }}"
working-directory: apps/nt-stylesheet
2 changes: 1 addition & 1 deletion apps/nt-stylesheet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@nashtech/nt-stylesheet",
"version": "1.0.0",
"description": "Style sheet for the NT Design System",
"packageManager": "pnpm@9.0.5",
"packageManager": "pnpm@9.15.3",
"scripts": {
"build": "pnpm vite build",
"test": "npx vitest",
Expand Down
Loading

0 comments on commit 03c19b6

Please sign in to comment.