Files
malio-layer-ui/.gitea/workflows/release.yml
tristan dafc8cc23f
All checks were successful
Release / release (push) Successful in 1m22s
fix: release
2026-02-19 10:58:13 +01:00

59 lines
1.4 KiB
YAML

name: Release
on:
push:
branches:
- main
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Configure Git Auth
env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
git config user.name "malio-ci"
git config user.email "ci@gitea.malio.fr"
git remote set-url origin "https://oauth2:${RELEASE_TOKEN}@gitea.malio.fr/MALIO-DEV/malio-layer-ui.git"
- name: Install Dependencies
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Lint
run: |
npm run dev:prepare
npm run lint
- name: Release
env:
GIT_AUTHOR_NAME: malio-ci
GIT_AUTHOR_EMAIL: ci@gitea.malio.fr
GIT_COMMITTER_NAME: malio-ci
GIT_COMMITTER_EMAIL: ci@gitea.malio.fr
GIT_CREDENTIALS: ${{ secrets.RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npx --yes \
-p semantic-release@24 \
-p @semantic-release/commit-analyzer@13 \
-p @semantic-release/release-notes-generator@14 \
-p @semantic-release/npm@12 \
semantic-release