generated from JohnBra/vite-web-extension
-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (34 loc) · 924 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
40
41
name: Release
on:
push:
branches:
- main
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Run Semantic Release
run: |
touch .env
echo CROWDIN_TOKEN=$CROWDIN_TOKEN >> .env
npx semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
- name: Merge changes from main into dev
run: |
# Switch to the dev branch
git checkout dev
# Merge changes from the main branch into dev
git merge main
# Push changes to the dev branch
git push origin dev