Skip to content

Commit

Permalink
ci: temp version
Browse files Browse the repository at this point in the history
  • Loading branch information
OpportunityLiu committed Dec 4, 2024
1 parent 51b6052 commit fc6f8fb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
- id: Install
uses: wyvox/action-setup-pnpm@v3
- id: Optimize
run: pnpm optimize
- id: Versioning
run: |
VERSION=$(git describe --tags --abbrev=8)
VERSION=$(git describe --tags --abbrev=8 --always)
VERSION=${VERSION#v}
echo "Version: $VERSION"
jq --arg version "$VERSION" '.version = $version' package.json > tmp.$$.json && mv tmp.$$.json package.json
- id: Install
uses: wyvox/action-setup-pnpm@v3
- id: Optimize
run: pnpm optimize
- id: Build
env:
DOCS_BASE_URL: /${{ github.event.repository.name }}/
Expand Down

0 comments on commit fc6f8fb

Please sign in to comment.