54 lines
1.3 KiB
YAML
54 lines
1.3 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: npm ci
|
|
|
|
- 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
|