👷 added in lefthook, commitlint, and semantic-release
This commit is contained in:
parent
2e62c38ff2
commit
be3058d17a
7 changed files with 4601 additions and 14 deletions
|
|
@ -1,13 +1,18 @@
|
|||
name: Build Docker Image
|
||||
on:
|
||||
push:
|
||||
branches: [devel]
|
||||
branches:
|
||||
- "**"
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
jobs:
|
||||
build:
|
||||
build-image:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Docker Metadata
|
||||
id: metadata
|
||||
uses: docker/metadata-action@v5
|
||||
|
|
@ -17,6 +22,9 @@ jobs:
|
|||
type=ref,event=branch
|
||||
type=sha,prefix=
|
||||
type=edge,branch=devel
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
- name: Docker Buildx
|
||||
uses: https://code.forgejo.org/docker/setup-buildx-action@v3
|
||||
- name: Login to Docker Registry
|
||||
27
.forgejo/workflows/semver.yml
Normal file
27
.forgejo/workflows/semver.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
name: Semver
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "**"
|
||||
jobs:
|
||||
semver:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:21-alpine
|
||||
steps:
|
||||
- name: Setup Node
|
||||
run: |
|
||||
apk add --no-cache libc6-compat
|
||||
apk update
|
||||
yarn set version canary
|
||||
yarn config set nodeLinker node-modules
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: yarn install
|
||||
run: yarn install
|
||||
- name: Semver
|
||||
run: yarn run semantic-release
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue