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:
Robin Malfait 2021-09-07 14:18:22 +02:00 • committed by GitHub
parent 7c9bc49259
commit d01091d44d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -35,6 +35,9 @@ jobs:
env:
CI: true
- name: Build
run: npm run prepublishOnly
- name: Test
run: npm test
env: