Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update auto tag version when bump #32

Merged
merged 2 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading