Improve release workflows part 2 (#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.
This commit is contained in:
parent
7c9bc49259
commit
d01091d44d
2 changed files with 8 additions and 2 deletions
7
.github/workflows/release-insiders.yml
vendored
7
.github/workflows/release-insiders.yml
vendored
|
|
@ -35,6 +35,9 @@ jobs:
|
|||
env:
|
||||
CI: true
|
||||
|
||||
- name: Build
|
||||
run: npm run prepublishOnly
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
env:
|
||||
|
|
@ -44,8 +47,8 @@ jobs:
|
|||
id: vars
|
||||
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||
|
||||
- name: "Version based on commit: 0.0.0-${{ steps.vars.outputs.sha_short }}"
|
||||
run: npm version 0.0.0-${{ steps.vars.outputs.sha_short }}
|
||||
- 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 }}
|
||||
|
||||
- name: Publish
|
||||
run: npm publish --tag insiders
|
||||
|
|
|
|||
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
|
@ -35,6 +35,9 @@ jobs:
|
|||
env:
|
||||
CI: true
|
||||
|
||||
- name: Build
|
||||
run: npm run prepublishOnly
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
env:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue