Skip to content

chore: updated release config #5

chore: updated release config

chore: updated release config #5

Workflow file for this run

name: release
on:
push:
branches: [main, master]
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: 📦 Set Yarn Version
run: corepack prepare [email protected] --activate
- 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 dependencies
run: yarn install --immutable
- name: 🔨 Build
run: yarn build
- name: 📦 Release packages
run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}