Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,6 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Configure git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'

- name: Set version from release tag
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
Expand All @@ -61,7 +53,15 @@ jobs:
VERSION=${VERSION#refs/tags/}
fi
echo "Setting version to $VERSION"
npm version $VERSION --no-git-tag-version
npm version "$VERSION" --no-git-tag-version --allow-same-version

- name: Build
run: npm run build

- name: Configure git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'

- name: Publish to npm
run: |
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading