diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f2f62d0..c04a91a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,7 +25,9 @@ jobs: - name: Set package version run: | TAG="${{ github.event.release.tag_name }}" - npm version "${TAG#v}" --no-git-tag-version + if [ "$(node -p "require('./package.json').version")" != "${TAG#v}" ]; then + npm version "${TAG#v}" --no-git-tag-version + fi - name: Publish to npm run: | TAG="${{ github.event.release.tag_name }}" diff --git a/package-lock.json b/package-lock.json index 76caf19..2eabfbe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@codeceptjs/lint", - "version": "0.1.0", + "version": "0.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@codeceptjs/lint", - "version": "0.1.0", + "version": "0.2.0", "license": "MIT", "dependencies": { "acorn": "^8.19.0", diff --git a/package.json b/package.json index cf80715..a3f02d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@codeceptjs/lint", - "version": "0.1.0", + "version": "0.2.0", "description": "Linter for CodeceptJS tests, page objects and helpers", "type": "module", "main": "lib/Linter.js",