workflows: make nightly builds exit prerelease mode if needed

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-01-18 00:54:07 +01:00
parent 3e0482d134
commit f0fdae8e08
+4 -1
View File
@@ -60,8 +60,11 @@ jobs:
run: yarn build
# Prepares a nightly release version of any package with pending changesets
# Pre-mode is exited if case we're in it, otherwise it has no effect
- name: prepare nightly release
run: yarn changeset version --snapshot nightly
run: |
yarn changeset pre exit
yarn changeset version --snapshot nightly
# Publishes the nightly release to npm, by using tag we make sure the release is
# not flagged as the latest release, which means that people will not get this