Skip to content

Commit 02c9c7a

Browse files
committed
fix ci
1 parent 0b4b4b0 commit 02c9c7a

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish to npm
33
on:
44
push:
55
tags:
6-
- 'v*.*.*'
6+
- '*'
77
workflow_dispatch:
88

99
jobs:
@@ -13,8 +13,6 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
16-
with:
17-
fetch-depth: 0
1816

1917
- name: Setup Node.js
2018
uses: actions/setup-node@v4
@@ -24,7 +22,9 @@ jobs:
2422

2523
- name: Get version from tag
2624
id: version
27-
run: echo "version=$(echo $GITHUB_REF | sed 's/refs\/tags\///')" >> $GITHUB_OUTPUT
25+
run: |
26+
VERSION="${GITHUB_REF#refs/tags/}"
27+
echo "version=$VERSION" >> $GITHUB_OUTPUT
2828
2929
- name: Update package.json version
3030
run: npm pkg set version=${{ steps.version.outputs.version }}
@@ -43,7 +43,5 @@ jobs:
4343
with:
4444
body: |
4545
## @simcu/simapi v${{ steps.version.outputs.version }}
46-
47-
See [changelog](https://github.com/simcu/simapi-vue/releases) for details.
4846
env:
4947
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)