Skip to content

Commit e192fef

Browse files
committed
ready for ci/cd
1 parent f68b8f2 commit e192fef

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/publish.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ jobs:
2727
working-directory: ./
2828
- name : "versioning"
2929
run: |
30-
repository="${{github.repository}}"
31-
IFS='/' read -ra parts <<< "${repository}"
32-
latest_version=$(npm view "${parts[1]}" version)
30+
# based on repo
31+
# repository="${{github.repository}}"
32+
# IFS='/' read -ra parts <<< "${repository}"
33+
# latest_version=$(npm view "${parts[1]}" version)
34+
package_name=$(node -e "console.log(require('./package.json').name)")
35+
latest_version=$(npm view "${package_name}" version)
36+
3337
npm version "$latest_version" --no-git-tag-version
3438
npm version patch --no-git-tag-version
3539
working-directory: ./

0 commit comments

Comments
 (0)