Skip to content

v0.27.0

v0.27.0 #113

Workflow file for this run

name: Release Studio
on:
push:
# branches: main
jobs:
check-for-release:
runs-on: ubuntu-latest
outputs:
status: ${{ steps.check_versions.conclusion }}
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'*}"
if [[ $COMMIT_TITLE =~ ^(v|Version )[0-9]+\.[0-9]+\.[0-9]+( \(#[0-9]+\))?$ ]]
then
PACKAGE_VERSION="${COMMIT_TITLE#Version }"
PACKAGE_VERSION="${PACKAGE_VERSION#v}"
PACKAGE_VERSION="${PACKAGE_VERSION%% *}"
echo version=${PACKAGE_VERSION} >> $GITHUB_OUTPUT
echo should_continue=1 >> ${GITHUB_OUTPUT}
else
echo should_continue=0 >> ${GITHUB_OUTPUT}
fi
- name: check package versions
id: check_versions
if: steps.vars.outputs.should_continue == 1
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
if
grep -zq 'bumping studio-plugin.npm ERR! Version not changed' temp-bump-versions.txt &&
grep -zq 'bumping studio-ui.npm ERR! Version not changed' temp-bump-versions.txt &&
grep -zq 'bumping studio.npm ERR! Version not changed' temp-bump-versions.txt
then
if git diff --exit-code
then
exit 0
fi
echo "Found unexpected git diff from running the bump-versions.mjs script."
exit 1
fi
echo "Error running the bump-version.mjs script."
cat temp-bump-versions.txt
exit 1
check-linting:
needs: check-for-release
runs-on: ubuntu-latest
if: needs.check-for-release.outputs.status == 'success'
steps:
- uses: actions/checkout@v3
- uses: ./.github/setup-ci
- name: eslint check
run: npx eslint --max-warnings=0 .
- name: prettier check
run: npx prettier --check .
- name: cancel workflow
if: ${{ failure() }}
run: gh run cancel ${{ github.run_id }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run-tests:
needs: check-for-release
if: needs.check-for-release.outputs.status == 'success'
uses: ./.github/workflows/run-tests.yml
run-acceptance:
needs: check-for-release

Check failure on line 77 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release Studio

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 77, Col: 5): Required property is missing: runs-on
if: needs.check-for-release.outputs.status == 'success'
steps:
- run: echo "Placeholder"
# uses: ./.github/workflows/playwright.yml
# with:
# test_script: npm run playwright
call-publish:
needs: [check-linting, run-tests, run-acceptance]
uses: ./.github/workflows/publish-hold.yml