Skip to content

Commit 9565d7c

Browse files
feat: initialize project
1 parent 36abfc0 commit 9565d7c

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
issues: write
17+
pull-requests: write
18+
id-token: write
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: "20.16.0"
28+
- name: Install dependencies
29+
run: npm install -g semantic-release@24.0.0 @semantic-release/github@10.1.1
30+
- name: Release
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: npx semantic-release

.gitlab-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
stages:
2+
- release
3+
4+
release:
5+
image: node:20
6+
stage: release
7+
only:
8+
refs:
9+
- main
10+
script:
11+
- npm install -g semantic-release@24.0.0
12+
- npm install -g @semantic-release/gitlab@10.1.1
13+
- npx semantic-release

.releaserc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
branches:
2+
- main
3+
plugins:
4+
- "@semantic-release/commit-analyzer"
5+
- "@semantic-release/release-notes-generator"
6+
# remove the comment from one of them according to your needs
7+
- "@semantic-release/github"
8+
# - "@semantic-release/gitlab"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# Automating Semantic Release
12

3+
Related Article: [Automating Versioning and Releases Using Semantic Release](https://lorenzomiscoli.com/automating-versioning-and-releases-using-semantic-release)

0 commit comments

Comments
 (0)