Skip to content

Commit f68b8f2

Browse files
committed
changes commited
1 parent c35d428 commit f68b8f2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/publish.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ jobs:
2626
run: npm pack --dry-run
2727
working-directory: ./
2828
- name : "versioning"
29-
run: npm version patch --no-git-tag-version
29+
run: |
30+
repository="${{github.repository}}"
31+
IFS='/' read -ra parts <<< "${repository}"
32+
latest_version=$(npm view "${parts[1]}" version)
33+
npm version "$latest_version" --no-git-tag-version
34+
npm version patch --no-git-tag-version
3035
working-directory: ./
3136
- name : "build"
3237
run: npm run build

0 commit comments

Comments
 (0)