v0.27.0 #68
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
name: Release Studio | |
on: | |
push: | |
# branches: main | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
# if: startsWith(github.event.head_commit.message, 'simple') | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- name: check commit name | |
id: vars | |
run: | | |
COMMIT_MSG="${{ github.event.head_commit.message }}" | |
COMMIT_TITLE="${COMMIT_MSG%%$'\n'*}" | |
echo "${COMMIT_TITLE}" | |
if [[ $COMMIT_TITLE =~ ^(v|Version )[0-9]+\.[0-9]+\.[0-9]+( \(#[0-9]+\))?$ ]] | |
then | |
echo "matched regex" | |
PACKAGE_VERSION="${COMMIT_TITLE#Version }" | |
PACKAGE_VERSION="${PACKAGE_VERSION#v}" | |
PACKAGE_VERSION="${PACKAGE_VERSION%% *}" | |
echo "${PACKAGE_VERSION}" | |
echo version=${PACKAGE_VERSION} >> $GITHUB_OUTPUT | |
else | |
echo "did not match" | |
fi | |
- name: check package versions | |
run: | | |
if node ./bump-versions.mjs ${{ steps.vars.outputs.version }} &> temp-bump-versions.txt | |
then | |
echo "Package versions did not match ${{ steps.vars.outputs.version }}." | |
exit 1 | |
fi | |
echo "FAIL" | |
cat temp-bump-versions.txt | |
exit 1 | |
- name: check linting | |
run: | | |
npm run autofix | |
if git diff --exit-code | |
exit 0 | |
fi | |
echo "Found unexpected git diff from running `npm run autofix`." | |
exit 1 | |
- name: run tests | |
uses: ./.github/workflows/run-tests.yml |