Skip to content

Commit d01091d

Browse files
authored
Improve release workflows part 2 (tailwindlabs#5422)
* ensure we build before the tests Our tests require that for now. Will probably improve this in the future. * improve insiders version name This will make it consistent with previously published versions.
1 parent 7c9bc49 commit d01091d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/release-insiders.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
env:
3636
CI: true
3737

38+
- name: Build
39+
run: npm run prepublishOnly
40+
3841
- name: Test
3942
run: npm test
4043
env:
@@ -44,8 +47,8 @@ jobs:
4447
id: vars
4548
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
4649

47-
- name: "Version based on commit: 0.0.0-${{ steps.vars.outputs.sha_short }}"
48-
run: npm version 0.0.0-${{ steps.vars.outputs.sha_short }}
50+
- 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 }}
4952

5053
- name: Publish
5154
run: npm publish --tag insiders

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
env:
3636
CI: true
3737

38+
- name: Build
39+
run: npm run prepublishOnly
40+
3841
- name: Test
3942
run: npm test
4043
env:

0 commit comments

Comments
 (0)