forked from forcedotcom/lightning-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.22 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
name: Push to Main
on:
push:
branches: [main]
jobs:
tests:
uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@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 }}