Skip to content

Commit

Permalink
fix: gh action shell (#3200)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Feb 27, 2023
1 parent 5f4b004 commit 8886cd6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/update_own_version.sh
@@ -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
3 changes: 2 additions & 1 deletion .github/workflows/continuous-publish-new-version.yaml
Expand Up @@ -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: |
Expand Down

0 comments on commit 8886cd6

Please sign in to comment.