Skip to content

Commit 9b60387

Browse files
committed
Added the fix in release workflow for the github release only
1 parent 3402e74 commit 9b60387

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@ jobs:
4848
path: lib
4949
- name: Display dirs
5050
run: ls -R
51-
- name: Release
52-
id: release-plugin
53-
uses: JS-DevTools/npm-publish@v2.2.0
54-
with:
55-
token: ${{ secrets.NPM_TOKEN }}
51+
- name: get-npm-version
52+
id: package-version
53+
uses: martinbeentjes/npm-get-version-action@v1.3.1
5654
- name: github-release
5755
id: github-release
5856
env:
5957
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60-
run: gh release create v${{ steps.release-plugin.outputs.version }} --title "Release ${{ steps.release-plugin.outputs.version }}" --generate-notes
58+
run: gh release create v${{ steps.package-version.outputs.current-version }} --title "Release ${{ steps.package-version.outputs.current-version }}" --generate-notes

0 commit comments

Comments
 (0)