Skip to content

Commit 9d7ac8c

Browse files
committed
fix: catching error when setting same version
1 parent 74ffd67 commit 9d7ac8c

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/npm-install-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: npm i & t
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [ main ]
99
pull_request:
10-
branches: [ master ]
10+
branches: [ main ]
1111

1212
jobs:
1313
build:

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Test & Publish
3030
run: |
3131
npm install
32-
npm version ${{ github.event.release.tag_name }} --no-git-tag-version || true
32+
{ npm version ${{ github.event.release.tag_name }} --no-git-tag-version & } || true
3333
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
3434
npm publish
3535

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)