1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: gh action shell (#3200)

This commit is contained in:
Mateusz Kwasniewski 2023-02-27 11:19:31 +01:00 committed by GitHub
parent 5f4b0044f7
commit 8886cd6ee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View File

@ -1,5 +1,14 @@
#!/usr/bin/env bash
#!/bin/bash
set -e
npm version prerelease --preid=beta --ignore-scripts
CURRENT_VERSION=$(npm pkg get version)
echo $CURRENT_VERSION
if [[ $CURRENT_VERSION == *beta* ]]; then
echo "Current beta update"
npm version prerelease --preid=beta --ignore-scripts
else
echo "Next minor beta update"
npm version preminor --preid=beta --ignore-scripts
fi

View File

@ -39,7 +39,8 @@ jobs:
# sample transition after official release: 4.20.0 -> 4.21.0-beta.0
# sample transition after previous beta release: 4.21.0-beta.0 -> 4.21.0-beta.1
- name: update own version
run: .github/update_own_version.sh
shell: bash
run: bash ./.github/update_own_version.sh
- name: push new version
# The new version is pushed back to main and to npm
run: |