-
Notifications
You must be signed in to change notification settings - Fork 81
49 lines (42 loc) · 1.15 KB
/
cd.yaml
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
47
48
49
name: Release
on:
push:
branches:
- main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
VITE_ENV: "ci"
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "yarn"
- name: Install dependencies
run: yarn
# Bump package versions based on changesets and commit changes to the main branch
- name: Bump package versions
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
run: |
git config user.name toolsvenus
git config user.email [email protected]
git fetch origin
git rebase --strategy-option=theirs origin/main
npx changeset version
git add -A
git status
git commit --verbose -a -m "chore: bump package versions" || exit 0
git push