Skip to content

Commit c9d0b11

Browse files
fix release (#48)
1 parent aba48a4 commit c9d0b11

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@ jobs:
4343
- name: Install dependencies
4444
run: npm ci
4545

46-
- name: Build
47-
run: npm run build
48-
49-
- name: Configure git
50-
run: |
51-
git config --global user.name 'github-actions[bot]'
52-
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
53-
5446
- name: Set version from release tag
5547
run: |
5648
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
@@ -61,7 +53,15 @@ jobs:
6153
VERSION=${VERSION#refs/tags/}
6254
fi
6355
echo "Setting version to $VERSION"
64-
npm version $VERSION --no-git-tag-version
56+
npm version "$VERSION" --no-git-tag-version --allow-same-version
57+
58+
- name: Build
59+
run: npm run build
60+
61+
- name: Configure git
62+
run: |
63+
git config --global user.name 'github-actions[bot]'
64+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
6565
6666
- name: Publish to npm
6767
run: |

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)