-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* chore: Add sematic releases (cherry picked from commit 41249c5) * chore: Update branch name (cherry picked from commit cc1bdd4) * chore: block major releases (cherry picked from commit c12a36a) * ci: use latest ubuntu container (cherry picked from commit 6fc11cb) * chore: do not publish any assets (cherry picked from commit e0a9a69) Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com> Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
- Loading branch information
1 parent
d6126b6
commit 8e30af8
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Generate Semantic Release | ||
on: | ||
push: | ||
branches: | ||
- version-13 | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Entire Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js v14 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- name: Setup dependencies | ||
run: | | ||
npm install @semantic-release/git @semantic-release/exec --no-save | ||
- name: Create Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: npx semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"branches": ["version-13"], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", { | ||
"preset": "angular", | ||
"releaseRules": [ | ||
{"breaking": true, "release": false} | ||
] | ||
}, | ||
"@semantic-release/release-notes-generator", | ||
[ | ||
"@semantic-release/exec", { | ||
"prepareCmd": 'sed -ir "s/[0-9]*\.[0-9]*\.[0-9]*/${nextRelease.version}/" erpnext/__init__.py' | ||
} | ||
], | ||
[ | ||
"@semantic-release/git", { | ||
"assets": ["erpnext/__init__.py"], | ||
"message": "chore(release): Bumped to Version ${nextRelease.version}\n\n${nextRelease.notes}" | ||
} | ||
], | ||
"@semantic-release/github" | ||
] | ||
} |