-
-
Notifications
You must be signed in to change notification settings - Fork 64
39 lines (37 loc) · 962 Bytes
/
release.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
name: Release
on: workflow_call
permissions: write-all
jobs:
run:
if: ${{ github.ref_name == 'main' || github.ref_name == 'develop'}}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install Volta
uses: volta-cli/action@v4
- name: Echo versions
run: |
node --version
yarn --version
- name: Install dependencies
run: yarn --prefer-offline
env:
HUSKY: 0
- name: Build app
run: yarn build
- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HUSKY: 0
run: npx semantic-release
- name: Sync Dev to Main
if: ${{ github.ref_name == 'main'}}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git checkout develop
git merge main
git push origin develop