From f68b8f29e6c68d0485f7c259be7130c27a3c210c Mon Sep 17 00:00:00 2001 From: nagendra Date: Thu, 18 Apr 2024 21:43:19 +0530 Subject: [PATCH] changes commited --- .github/workflows/publish.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 46001cb..e48ba0c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,7 +26,12 @@ jobs: run: npm pack --dry-run working-directory: ./ - name : "versioning" - run: npm version patch --no-git-tag-version + run: | + repository="${{github.repository}}" + IFS='/' read -ra parts <<< "${repository}" + latest_version=$(npm view "${parts[1]}" version) + npm version "$latest_version" --no-git-tag-version + npm version patch --no-git-tag-version working-directory: ./ - name : "build" run: npm run build