Skip to content

Commit

Permalink
ci: auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
moontai0724 committed Feb 18, 2024
1 parent 092aa6e commit 518413b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 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 @@ -65,3 +67,9 @@ jobs:
BRANCH: release
FOLDER: dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Release
uses: softprops/action-gh-release@v1
with:
files: dist/**/*
tag_name: v${{ steps.versioning.outputs.version }}

0 comments on commit 518413b

Please sign in to comment.