Skip to content

Commit

Permalink
ci: get version for release
Browse files Browse the repository at this point in the history
  • Loading branch information
moontai0724 committed Feb 18, 2024
1 parent 77ec98f commit af561e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ jobs:
run: pnpm install

- name: bump version
id: versioning
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
npx commit-and-tag-version
echo "version=$(node -p -e "require('./package.json').version")" >> "$GITHUB_OUTPUT"
- name: Build
run: NODE_ENV=production pnpm build
Expand All @@ -70,3 +72,4 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: dist/*
tag_name: ${{ steps.versioning.outputs.version }}

0 comments on commit af561e8

Please sign in to comment.