-
-
Notifications
You must be signed in to change notification settings - Fork 83
46 lines (44 loc) · 1.21 KB
/
release.yml
File metadata and controls
46 lines (44 loc) · 1.21 KB
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
43
44
45
46
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/checkout@v4.1.1
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: Lint app
run: yarn lint
- name: Build app
run: yarn build
- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HUSKY: 0
run: npx semantic-release
- name: Configure git
if: ${{ github.ref_name == 'main'}}
run: |
git config --global user.name "turtlesocks-bot"
git config --global user.email "turtlesocks-bot@users.noreply.github.com"
- 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