+
Skip to content

set package.json version properly #2

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

Merged
merged 1 commit into from
Aug 8, 2024
Merged
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
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
- name: Lint project
run: pnpm lint

# Updates the version in the package.json
- name: Set package version
uses: ZeWaka/set-node-package-version@v1
with:
version: ${{ github.ref_name }}

- name: Build project
run: pnpm build

Expand All @@ -38,7 +44,7 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Build for Release" || echo "No changes to commit"
git commit -m "Build & Release ${{ github.ref_name }}" || echo "No changes to commit"

- name: Push changes
uses: ad-m/github-push-action@master
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载