Skip to content

Commit

Permalink
v0.27.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nmanu1 committed Oct 30, 2023
1 parent b565f6f commit 9fd4c7c
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 12 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
- 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'*}"
Expand All @@ -22,6 +23,39 @@ jobs:
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
if [[
grep -zq '...bumping studio-plugin\nnpm ERR! Version not changed' temp-bump-versions.txt &&
grep -zq '...bumping studio-ui\nnpm ERR! Version not changed' temp-bump-versions.txt &&
grep -zq '...bumping studio\nnpm 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
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
14 changes: 12 additions & 2 deletions bump-versions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,18 @@ function readJson(filepath) {
}

function main() {
bumpPackage("studio-plugin");
bumpPackage("studio-ui");
try {
bumpPackage("studio-plugin");
} catch (e) {
console.error(e)
}

try {
bumpPackage("studio-ui");
} catch (e) {
console.error(e)
}

bumpStudio();
}

Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/studio-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/studio-plugin",
"version": "0.27.0-alpha.1",
"version": "0.27.0",
"types": "./lib/index.d.ts",
"main": "./lib/index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/studio-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/studio-ui",
"version": "0.27.0-alpha.1",
"version": "0.27.0",
"types": "./lib/src/index.d.ts",
"main": "./lib/src/index.js",
"type": "module",
Expand Down
6 changes: 3 additions & 3 deletions packages/studio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/studio",
"version": "0.27.0-alpha.1",
"version": "0.27.0",
"types": "./lib/types.d.ts",
"type": "module",
"bin": {
Expand All @@ -14,8 +14,8 @@
},
"dependencies": {
"@vitejs/plugin-react": "^4.0.4",
"@yext/studio-plugin": "0.27.0-alpha.1",
"@yext/studio-ui": "0.27.0-alpha.1",
"@yext/studio-plugin": "0.27.0",
"@yext/studio-ui": "0.27.0",
"autoprefixer": "^10.4.14",
"cac": "^6.7.14",
"cross-env": "^7.0.3",
Expand Down

0 comments on commit 9fd4c7c

Please sign in to comment.