chore: fix ci #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |