Skip to content

Commit 91e4029

Browse files
committed
Fix prerelease publishing
The options that were being used in `npm publish` to modify the version to include the git hash at the end are intended to be used with the `npm version` command beforehand instead. I think this got messed up somewhere along the way while rewriting the GitHub Action. Fixes #1128 Signed-off-by: David Thompson <davthomp@redhat.com>
1 parent f0b6ad0 commit 91e4029

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/CI.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ jobs:
7878
- name: Publish
7979
if: ${{ success() && runner.os == 'Linux' && github.event_name == 'push' && github.ref == 'refs/heads/main'}}
8080
run: |
81-
npm publish --tag next --no-git-tag-version --prepatch --preid "$(git rev-parse --short HEAD)"
81+
npm version prerelease --preid $(git rev-parse --short HEAD) --no-git-tag-version
82+
npm publish --tag next
8283
env:
8384
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8485

0 commit comments

Comments
 (0)