-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.25 KB
/
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
42
43
44
45
46
47
48
49
50
51
name: release
on:
push:
branches: [main, master, develop]
workflow_dispatch:
jobs:
release:
name: Running release
if: "!contains(toJSON(github.event.commits.*.message), 'chore(release):')"
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: 🛒 Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: ⚙️ Enable Corepack
run: corepack enable
- name: ⚙️ Git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: 💿 Setup Nodejs
uses: actions/setup-node@v4
with:
node-version: 22
check-latest: true
registry-url: 'https://npm.pkg.github.com'
cache: 'yarn'
- name: Install the correct Yarn version
run: yarn set version $(node -p 'require("./package.json").packageManager.replace("yarn@", "")')
- name: 🧩 Install dependencies
run: yarn install --immutable
- name: 🔨 Build
run: yarn build
- name: 📦 Release packages
run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}