Skip to content

Commit

Permalink
Update changesets based deployments (#4167)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzuraw committed Sep 7, 2023
1 parent 121c9ba commit 5378f0c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
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
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,22 @@
"postbuild": "./scripts/sentry.sh",
"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",
"format:code": "prettier --ignore-unknown --write src/*"
"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/",
"qa:generate-html-report": "npm run qa:combine-reports && npm run qa:generate-mocha-report",
"qa:create-artifacts-dirs": "mkdir -p cypress/reports/mochareports && mkdir -p cypress/reports/mochareports/videos",
"qa:move-screenshots": "find cypress/reports/mochareports -type d -name \"*.js\" -exec mv {} cypress/reports/mochareports \\;",
"qa:move-videos": "find cypress/videos -type f -name \"*.js.mp4\" -exec mv {} cypress/reports/mochareports/videos \\;",
"qa:artifact-move-screenshots": "find cypress/reports/*/mochareports -type d -name \"*.js\" -exec mv {} cypress/reports/mochareports \\;",
"qa:artifact-move-videos": "find cypress/reports/*/mochareports/videos -type f -name \"*.js.mp4\" -exec mv {} cypress/reports/mochareports/videos \\;"
},
"description": "![Saleor Dashboard](https://user-images.githubusercontent.com/44495184/185379472-2a204c0b-9b7a-4a3e-93c0-2cb85205ed5e.png)"
}
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 --

0 comments on commit 5378f0c

Please sign in to comment.