Skip to content

Commit 3957120

Browse files
committed
Change npm version action
1 parent e9b064b commit 3957120

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/build_release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ jobs:
2222

2323
- name: get-npm-version
2424
id: package-version
25-
uses: martinbeentjes/npm-get-version-action@master
26-
if: ${{ matrix.platform == 'ubuntu-16.04' }}
25+
uses: action-get-npm-version@master
2726

2827
- name: Validate version
2928
run: echo "Wrong tag"
30-
if: ${{ matrix.platform == 'ubuntu-16.04' && github.event.release.tag_name != format('{0}{1}', 'v', steps.package-version.outputs.current-version) }}
29+
if: ${{ github.event.release.tag_name != format('{0}{1}', 'v', steps.package-version.outputs.version) }}
3130

3231
- name: Get current date
3332
uses: 1466587594/get-current-time@v2

0 commit comments

Comments
 (0)