mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
fix: Own version update fix (#3196)
This commit is contained in:
parent
4f14549fa1
commit
10b41fc8b2
13
.github/update_own_version.sh
vendored
Executable file
13
.github/update_own_version.sh
vendored
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CURRENT_VERSION=$(npm pkg get 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
|
@ -35,14 +35,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- name: update package version
|
|
||||||
# This step always creates beta version
|
# This step always creates beta version
|
||||||
# sample transition after official release: 4.20.0 -> 4.21.0-beta.0
|
# 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
|
# sample transition after previous beta release: 4.21.0-beta.0 -> 4.21.0-beta.1
|
||||||
#
|
- name: update own version
|
||||||
# The new version is pushed back to master and to npm
|
run: .github/update_own_version.sh
|
||||||
|
- name: push new version
|
||||||
|
# The new version is pushed back to main and to npm
|
||||||
run: |
|
run: |
|
||||||
npm version prerelease --preid=beta --ignore-scripts
|
|
||||||
git push origin ${{ github.ref_name }}
|
git push origin ${{ github.ref_name }}
|
||||||
git push --tags
|
git push --tags
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user