Skip to content

Commit 2b9c4fe

Browse files
authored
Force creating an npm version for insiders build (tailwindlabs#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.
1 parent d01091d commit 2b9c4fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release-insiders.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
4949

5050
- name: "Version based on commit: 0.0.0-insiders.${{ steps.vars.outputs.sha_short }}"
51-
run: npm version 0.0.0-insiders.${{ steps.vars.outputs.sha_short }}
51+
run: npm version 0.0.0-insiders.${{ steps.vars.outputs.sha_short }} --force
5252

5353
- name: Publish
5454
run: npm publish --tag insiders

0 commit comments

Comments
 (0)