Deepesh Garg | 41249c5 | 2022-04-18 10:38:22 +0530 | [diff] [blame] | 1 | name: Generate Semantic Release |
| 2 | on: |
| 3 | push: |
| 4 | branches: |
Deepesh Garg | cc1bdd4 | 2022-04-18 10:48:31 +0530 | [diff] [blame] | 5 | - version-13 |
Deepesh Garg | 41249c5 | 2022-04-18 10:38:22 +0530 | [diff] [blame] | 6 | jobs: |
| 7 | release: |
| 8 | name: Release |
Ankush Menat | 6fc11cb | 2022-04-18 16:17:36 +0530 | [diff] [blame] | 9 | runs-on: ubuntu-latest |
Deepesh Garg | 41249c5 | 2022-04-18 10:38:22 +0530 | [diff] [blame] | 10 | steps: |
| 11 | - name: Checkout Entire Repository |
| 12 | uses: actions/checkout@v2 |
| 13 | with: |
| 14 | fetch-depth: 0 |
Deepesh Garg | e4265ce | 2022-04-19 17:26:42 +0530 | [diff] [blame] | 15 | persist-credentials: false |
Ankush Menat | 1ad1fc4 | 2023-01-09 13:25:05 +0530 | [diff] [blame] | 16 | - name: Setup Node.js |
Deepesh Garg | 41249c5 | 2022-04-18 10:38:22 +0530 | [diff] [blame] | 17 | uses: actions/setup-node@v2 |
| 18 | with: |
Ankush Menat | 1ad1fc4 | 2023-01-09 13:25:05 +0530 | [diff] [blame] | 19 | node-version: 18 |
Deepesh Garg | 41249c5 | 2022-04-18 10:38:22 +0530 | [diff] [blame] | 20 | - name: Setup dependencies |
| 21 | run: | |
| 22 | npm install @semantic-release/git @semantic-release/exec --no-save |
| 23 | - name: Create Release |
| 24 | env: |
Deepesh Garg | e4265ce | 2022-04-19 17:26:42 +0530 | [diff] [blame] | 25 | GH_TOKEN: ${{ secrets.RELEASE_TOKEN }} |
Deepesh Garg | 6f332f3 | 2022-04-19 15:28:56 +0530 | [diff] [blame] | 26 | GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |
Deepesh Garg | e4265ce | 2022-04-19 17:26:42 +0530 | [diff] [blame] | 27 | GIT_AUTHOR_NAME: "Frappe PR Bot" |
| 28 | GIT_AUTHOR_EMAIL: "developers@frappe.io" |
| 29 | GIT_COMMITTER_NAME: "Frappe PR Bot" |
| 30 | GIT_COMMITTER_EMAIL: "developers@frappe.io" |
Ankush Menat | 1ad1fc4 | 2023-01-09 13:25:05 +0530 | [diff] [blame] | 31 | run: npx semantic-release |