Ver a proveniência

chore: Add semantic releases

version-14
Deepesh Garg há 3 anos
ascendente
cometimento
bafb1faa48
2 ficheiros alterados com 50 adições e 0 eliminações
  1. +25
    -0
      .github/workflows/release.yml
  2. +25
    -0
      .releaserc

+ 25
- 0
.github/workflows/release.yml Ver ficheiro

@@ -0,0 +1,25 @@
name: Generate Semantic Release
on:
push:
branches:
- version-13
jobs:
release:
name: Release
runs-on: ubuntu-18.04
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

+ 25
- 0
.releaserc Ver ficheiro

@@ -0,0 +1,25 @@
{
"branches": ["version-13"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec", {
"prepareCmd": 'sed -ir "s/[0-9]*\.[0-9]*\.[0-9]*/${nextRelease.version}/" frappe/__init__.py'
}
],
[
"@semantic-release/git", {
"assets": ["frappe/__init__.py"],
"message": "chore(release): Bumped to Version ${nextRelease.version}\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github", {
"assets": [
{"path": "dist/*"},
]
}
]
]
}

Carregando…
Cancelar
Guardar