-
Notifications
You must be signed in to change notification settings - Fork 48
42 lines (40 loc) · 1.21 KB
/
onPushToMain.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Push to Main
on:
push:
branches: [main]
jobs:
tests:
uses: ./.github/workflows/unitTests.yml
with:
branch: main
release:
runs-on: ubuntu-latest
needs:
- tests
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.IDEE_GH_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: yarn
- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@d360fad3a42feca6462f72c97c165d60a02d4bf2
with:
git-user-name: Release Bot
git-user-email: ${{ secrets.IDEE_GH_EMAIL }}
github-token: ${{ secrets.IDEE_GH_TOKEN }}
skip-version-file: true
output-file: false
pre-commit: ./scripts/bump-lerna-version.js
- name: Create Github Release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.IDEE_GH_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}