Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update changesets based deployments #4167

Merged
merged 5 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/grumpy-ties-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Update changesets based deployments
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,13 @@
"postbuild": "node scripts/removeSourcemaps.js",
"postinstall": "node scripts/patchReactVirtualized.js",
"predev": "npm run build-types",
"release": "changeset tag && git push --follow-tags",
"release": "echo $npm_package_version | xargs git tag && git push --follow-tags",
"prepare": "is-ci || husky install",
"dep-status": "depcruise --config .dependency-cruiser.js src",
"chromatic": "chromatic --exit-zero-on-changes",
"change:add": "changeset add",
"release:prepare-main": "./scripts/prepare-main-after-release.sh",
"release:cleanup": "./scripts/release-cleanup.sh",
"release:set-dev-version": "npm version preminor --preid dev --git-tag-version false",
"format:code": "prettier --ignore-unknown --write src/*",
"qa:combine-reports": "mochawesome-merge cypress/reports/*/mocha/*.json > cypress/reports/mochareports/report.json",
"qa:generate-mocha-report": "marge cypress/reports/mochareports/report.json --reportDir cypress/reports/",
Expand Down
8 changes: 8 additions & 0 deletions scripts/release-cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# Removes all changesets from provided release branch and bumps the version

set -e

git fetch --all
git diff --name-only origin/"$1" .changeset/ | xargs git rm --