Skip to content

Commit

Permalink
fix(release): set up patch fix branch with dryrun (#9728)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolethoen authored Oct 9, 2023
1 parent 24fec80 commit 5bf08bd
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 33 deletions.
4 changes: 2 additions & 2 deletions .github/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ echo "Doing a release..."
LOG=$(git log --format="%s" -1 | grep -Poe "#\d+")
PR_NUM=${LOG:1}

yarn run lerna publish prerelease --preid=prerelease --dist-tag=prerelease --yes 2>&1 | tee lerna-output.txt
# yarn run lerna publish patch --dist-tag=prerelease --yes 2>&1 | tee lerna-output.txt

# use lerna command below for dry run
# yarn run lerna version prerelease --preid=prerelease --yes --no-git-tag-version --no-push | tee lerna-output.txt
yarn run lerna version patch --yes --no-git-tag-version --no-push | tee lerna-output.txt

if grep -i "Successfully published" lerna-output.txt; # Leave a Github comment
then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release
on:
push:
branches:
- main
- 5.1.x
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
},
"version": "independent",
"allowBranch": ["main", "v4", "5.0.x"],
"allowBranch": ["main", "v4", "5.0.x", "5.1.x"],
"packages": ["packages/*", "packages/react-integration/demo-app-ts"],
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
6 changes: 3 additions & 3 deletions packages/react-charts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/react-charts",
"version": "7.2.0-prerelease.0",
"version": "7.1.1",
"description": "This library provides a set of React chart components for use with the PatternFly reference implementation.",
"main": "dist/js/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -28,8 +28,8 @@
},
"homepage": "https://github.com/patternfly/patternfly-react#readme",
"dependencies": {
"@patternfly/react-styles": "^5.2.0-prerelease.0",
"@patternfly/react-tokens": "^5.2.0-prerelease.0",
"@patternfly/react-styles": "^5.1.1",
"@patternfly/react-tokens": "^5.1.1",
"hoist-non-react-statics": "^3.3.0",
"lodash": "^4.17.19",
"tslib": "^2.5.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/react-code-editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/react-code-editor",
"version": "5.2.0-prerelease.0",
"version": "5.1.1",
"description": "This package provides a PatternFly wrapper for the Monaco code editor\n",
"main": "dist/js/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -29,9 +29,9 @@
"clean": "rimraf dist"
},
"dependencies": {
"@patternfly/react-core": "^5.2.0-prerelease.0",
"@patternfly/react-icons": "^5.2.0-prerelease.0",
"@patternfly/react-styles": "^5.2.0-prerelease.0",
"@patternfly/react-core": "^5.1.1",
"@patternfly/react-icons": "^5.1.1",
"@patternfly/react-styles": "^5.1.1",
"react-dropzone": "14.2.3",
"tslib": "^2.5.0"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/react-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/react-core",
"version": "5.2.0-prerelease.0",
"version": "5.1.1",
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
"main": "dist/js/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -45,9 +45,9 @@
"subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json"
},
"dependencies": {
"@patternfly/react-icons": "^5.2.0-prerelease.0",
"@patternfly/react-styles": "^5.2.0-prerelease.0",
"@patternfly/react-tokens": "^5.2.0-prerelease.0",
"@patternfly/react-icons": "^5.1.1",
"@patternfly/react-styles": "^5.1.1",
"@patternfly/react-tokens": "^5.1.1",
"focus-trap": "7.5.2",
"react-dropzone": "^14.2.3",
"tslib": "^2.5.0"
Expand Down
16 changes: 8 additions & 8 deletions packages/react-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@patternfly/react-docs",
"description": "PatternFly React Docs",
"version": "6.2.0-prerelease.0",
"version": "6.1.1",
"publishConfig": {
"access": "public"
},
Expand All @@ -23,13 +23,13 @@
},
"dependencies": {
"@patternfly/patternfly": "5.1.0",
"@patternfly/react-charts": "^7.2.0-prerelease.0",
"@patternfly/react-code-editor": "^5.2.0-prerelease.0",
"@patternfly/react-core": "^5.2.0-prerelease.0",
"@patternfly/react-icons": "^5.2.0-prerelease.0",
"@patternfly/react-styles": "^5.2.0-prerelease.0",
"@patternfly/react-table": "^5.2.0-prerelease.0",
"@patternfly/react-tokens": "^5.2.0-prerelease.0"
"@patternfly/react-charts": "^7.1.1",
"@patternfly/react-code-editor": "^5.1.1",
"@patternfly/react-core": "^5.1.1",
"@patternfly/react-icons": "^5.1.1",
"@patternfly/react-styles": "^5.1.1",
"@patternfly/react-table": "^5.1.1",
"@patternfly/react-tokens": "^5.1.1"
},
"devDependencies": {
"@patternfly/documentation-framework": "^5.0.15",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/react-icons",
"version": "5.2.0-prerelease.0",
"version": "5.1.1",
"description": "PatternFly 4 Icons as React Components",
"main": "dist/js/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-integration/demo-app-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"serve:demo-app": "node scripts/serve"
},
"dependencies": {
"@patternfly/react-core": "^5.1.1-prerelease.23",
"@patternfly/react-core": "^5.1.1",
"react": "^18",
"react-dom": "^18",
"react-router": "^5.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-integration/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/react-integration",
"version": "5.1.1-prerelease.8",
"version": "5.1.1",
"private": true,
"description": "Integration testing for PF5 using demo applications",
"main": "lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-styles/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/react-styles",
"version": "5.2.0-prerelease.0",
"version": "5.1.1",
"main": "dist/js/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
Expand Down
10 changes: 5 additions & 5 deletions packages/react-table/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/react-table",
"version": "5.2.0-prerelease.0",
"version": "5.1.1",
"description": "This library provides a set of React table components for use with the PatternFly 4",
"main": "dist/js/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -39,10 +39,10 @@
"subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json"
},
"dependencies": {
"@patternfly/react-core": "^5.2.0-prerelease.0",
"@patternfly/react-icons": "^5.2.0-prerelease.0",
"@patternfly/react-styles": "^5.2.0-prerelease.0",
"@patternfly/react-tokens": "^5.2.0-prerelease.0",
"@patternfly/react-core": "^5.1.1",
"@patternfly/react-icons": "^5.1.1",
"@patternfly/react-styles": "^5.1.1",
"@patternfly/react-tokens": "^5.1.1",
"lodash": "^4.17.19",
"tslib": "^2.5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-tokens/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/react-tokens",
"version": "5.2.0-prerelease.0",
"version": "5.1.1",
"description": "This library provides access to the design tokens of PatternFly 4 from JavaScript",
"main": "dist/js/index.js",
"module": "dist/esm/index.js",
Expand Down

0 comments on commit 5bf08bd

Please sign in to comment.