Skip to content

Commit

Permalink
Update Create_Public_Release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alpha1638888 authored Dec 23, 2024
1 parent 39ca31b commit a2554c7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/Create_Public_Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: 更新package.json版本号
run: |
# 移除v前缀
VERSION=${{ github.event.inputs.version }}
npm version $VERSION --no-git-tag-version
- name: 安装依赖
run: npm install

Expand All @@ -45,6 +51,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./test-latest.tgz
asset_name: test-latest.tgz
asset_path: ./test-${{ github.event.inputs.version }}.tgz
asset_name: test-${{ github.event.inputs.version }}.tgz
asset_content_type: application/gzip

0 comments on commit a2554c7

Please sign in to comment.