-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use scene-viewer 1.0 instead of 1.2.
- Loading branch information
Showing
3 changed files
with
28 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,21 +101,36 @@ jobs: | |
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
- name: Bump version to beta | ||
- name: Check existing beta versions | ||
id: beta-branch-check | ||
run: | | ||
npm version prerelease --preid=beta --no-git-tag-version | ||
current_version=$(node -p "require('./package.json').version") | ||
prefix="beta/v$current_version-beta" | ||
last_beta=$(git tag | grep "^${prefix}" | sort -V | tail -n 1) | ||
if [ -z "$last_beta" ]; then | ||
next_beta="${prefix}.1" | ||
else | ||
beta_number=$(echo $last_beta | awk -F '.' '{print $NF}') | ||
next_beta="${prefix}.$((beta_number + 1))" | ||
fi | ||
echo "next_beta=$next_beta" >> $GITHUB_ENV | ||
- name: Bump to next beta version | ||
run: | | ||
new_version=$(echo $next_beta | sed 's|beta/v||') | ||
npm version $new_version --no-git-tag-version | ||
git add package.json | ||
- name: Create beta branch | ||
run: | | ||
git checkout -b ${{ env.next_beta }} | ||
- name: Build DIVE | ||
run: yarn build | ||
|
||
- name: Add build files | ||
run: git add ./build -f | ||
|
||
- name: 'Create beta branch' | ||
run: | ||
git checkout -b beta/v$(node -p "require('./package.json').version") | ||
|
||
- name: Commit changes | ||
run: | | ||
git commit -m "Beta v$(node -p "require('./package.json').version")" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters