File tree 2 files changed +28
-7
lines changed
2 files changed +28
-7
lines changed Original file line number Diff line number Diff line change 52
52
name : Release new version
53
53
command : npm run release
54
54
55
+ # Reset alpha branch after a release
56
+ post_release :
57
+ docker :
58
+ - image : circleci/node:12
59
+ steps :
60
+ - checkout
61
+ - run :
62
+ name : Set tip of alpha branch on top of release and force-push it to remote
63
+ command : |
64
+ git pull origin release
65
+ git checkout alpha
66
+ git reset --hard release --
67
+ git push "https://$GITHUB_TOKEN@github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git" --force
68
+
55
69
workflows :
56
70
version : 2
57
71
main :
@@ -65,6 +79,13 @@ workflows:
65
79
- build
66
80
filters :
67
81
branches :
68
- only :
82
+ only :
69
83
- release
70
84
- alpha
85
+ - post_release :
86
+ requires :
87
+ - release
88
+ filters :
89
+ branches :
90
+ only :
91
+ - release
Original file line number Diff line number Diff line change 41
41
[
42
42
" semantic-release-version-bump" ,
43
43
{
44
- "files" : " newspack-new-plugin-boilerplate .php" ,
44
+ "files" : " newspack-sponsors .php" ,
45
45
"callback" : " npm run release:archive"
46
46
}
47
47
],
48
48
{
49
49
"path" : " @semantic-release/git" ,
50
50
"assets" : [
51
- " newspack-new-plugin-boilerplate .php" ,
51
+ " newspack-sponsors .php" ,
52
52
" package.json" ,
53
53
" package-lock.json" ,
54
54
" CHANGELOG.md"
71
71
{
72
72
"assets" : [
73
73
{
74
- "path" : " ./release/newspack-new-plugin-boilerplate .zip" ,
75
- "label" : " newspack-new-plugin-boilerplate .zip"
74
+ "path" : " ./release/newspack-sponsors .zip" ,
75
+ "label" : " newspack-sponsors .zip"
76
76
}
77
77
]
78
78
}
86
86
},
87
87
"repository" : {
88
88
"type" : " git" ,
89
- "url" : " git+https://github.com/Automattic/newspack-new-plugin-boilerplate .git"
89
+ "url" : " git+https://github.com/Automattic/newspack-sponsors .git"
90
90
},
91
91
"license" : " GPL-2.0-or-later" ,
92
92
"bugs" : {
93
- "url" : " https://github.com/Automattic/newspack-new-plugin-boilerplate /issues"
93
+ "url" : " https://github.com/Automattic/newspack-sponsors /issues"
94
94
},
95
95
"dependencies" : {
96
96
"@wordpress/api-fetch" : " ^3.12.0" ,
You can’t perform that action at this time.
0 commit comments