Skip to content

Commit 38ff19f

Browse files
Merge pull request #2 from iExecBlockchainComputing/ci/init-release-workflows
ci: add GitHub Actions workflows for conventional commits, CI, and release management
2 parents 409de64 + 8dcdb09 commit 38ff19f

File tree

6 files changed

+84
-0
lines changed

6 files changed

+84
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Conventional Commits Check
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
check-conventional-commits:
9+
name: Conventional Commits
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Check Commit Conventions
15+
uses: webiny/[email protected]

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: main-ci
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repo
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v4
16+
17+
- name: Install dependencies
18+
run: |
19+
node -v
20+
npm -v
21+
npm ci --no-fund
22+
23+
- name: Check Prettier
24+
run: npm run check-format

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
permissions:
7+
contents: write
8+
issues: write
9+
pull-requests: write
10+
11+
name: release-please
12+
13+
jobs:
14+
release-please:
15+
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/[email protected]
16+
secrets: inherit

.release-please-manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"build": "tsc -b && vite build",
99
"lint": "eslint .",
1010
"format": "prettier --write src",
11+
"check-format": "prettier --check src",
1112
"preview": "vite preview"
1213
},
1314
"dependencies": {

release-please-config.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"changelog-sections": [
4+
{ "type": "feat", "section": "🚀 Features", "hidden": false },
5+
{ "type": "change", "section": "🚀 Features", "hidden": false },
6+
{ "type": "deprecate", "section": "⚠️ Changes", "hidden": false },
7+
{ "type": "remove", "section": "⚠️ Changes", "hidden": false },
8+
{ "type": "fix", "section": "🐞 Bug Fixes", "hidden": false },
9+
{ "type": "revert", "section": "🐞 Bug Fixes", "hidden": false },
10+
{ "type": "security", "section": "🐞 Bug Fixes", "hidden": false },
11+
{ "type": "perf", "section": "✨ Polish", "hidden": false },
12+
{ "type": "refactor", "section": "✨ Polish", "hidden": false },
13+
{ "type": "style", "section": "✨ Polish", "hidden": false },
14+
{ "type": "build", "section": "🧰 Other", "hidden": false },
15+
{ "type": "chore", "section": "🧰 Other", "hidden": false },
16+
{ "type": "deps", "section": "🧰 Other", "hidden": true },
17+
{ "type": "ci", "section": "🧰 Other", "hidden": true },
18+
{ "type": "test", "section": "🧪 Tests", "hidden": false },
19+
{ "type": "docs", "section": "📚 Documentation", "hidden": true }
20+
],
21+
"packages": {
22+
".": {
23+
"release-type": "node",
24+
"changelog-path": "CHANGELOG.md"
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)