mirror of
https://github.com/SimonPistache/famfamfam-silk-svg.git
synced 2025-06-10 11:04:21 +02:00
ci(#202): 👷 Start working on CI
Add Semantic Release for automating Releasing versions
This commit is contained in:
parent
30b7451ef8
commit
314fb72f92
33
.github/workflows/auto-release.yml
vendored
Normal file
33
.github/workflows/auto-release.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
name: Automatic Release
|
||||
run-name: Release a new version of the Icons on PR's merging
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
semantic-release:
|
||||
if: "!contains(github.event.head_commit.message, 'ci:')"
|
||||
|
||||
name: Semantic Release
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
# Checkout data from the repository
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
|
||||
# Run Semantic-release-action with the included release
|
||||
- name: Semantic Release
|
||||
uses: cycjimmy/semantic-release-action@v4
|
||||
id: semantic # Need an `id` for output variables
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
9
.releaserc.yml
Normal file
9
.releaserc.yml
Normal file
@ -0,0 +1,9 @@
|
||||
plugins:
|
||||
- "@semantic-release/commit-analyzer"
|
||||
- "@semantic-release/release-notes-generator"
|
||||
- "@semantic-release/changelog"
|
||||
- "@semantic-release/git"
|
||||
- "@semantic-release/github"
|
||||
|
||||
branches:
|
||||
- main
|
Loading…
x
Reference in New Issue
Block a user