Force creating an npm version for insiders build (#5423)
This fails because we usually use node 14 or 16, which has a package-lock.json version of `2`. However on node 12, this version is `1`. This means that after an npm install the package-lock.json is touched and thus `npm version` fails because git is in a dirty directory. Adding a `--force` is not ideal, but also not really an issue since the only thing that could change is the package-lock.json and this is not published to npm anyways.
This commit is contained in:
parent
d01091d44d
commit
2b9c4fec1f
1 changed files with 1 additions and 1 deletions
2
.github/workflows/release-insiders.yml
vendored
2
.github/workflows/release-insiders.yml
vendored
|
|
@ -48,7 +48,7 @@ jobs:
|
|||
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||
|
||||
- name: "Version based on commit: 0.0.0-insiders.${{ steps.vars.outputs.sha_short }}"
|
||||
run: npm version 0.0.0-insiders.${{ steps.vars.outputs.sha_short }}
|
||||
run: npm version 0.0.0-insiders.${{ steps.vars.outputs.sha_short }} --force
|
||||
|
||||
- name: Publish
|
||||
run: npm publish --tag insiders
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue