diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml new file mode 100644 index 00000000..20835beb --- /dev/null +++ b/.github/workflows/conventional-commits.yml @@ -0,0 +1,15 @@ +name: Conventional Commits Check + +on: + pull_request: + branches: [ main ] + +jobs: + check-conventional-commits: + name: Conventional Commits + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Check Commit Conventions + uses: webiny/action-conventional-commits@v1.3.0 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..c55f022e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: main-ci + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + + - name: Install dependencies + run: | + node -v + npm -v + npm ci --no-fund + + - name: Check Prettier + run: npm run check-format \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..2f324e51 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,16 @@ +on: + push: + branches: + - main + +permissions: + contents: write + issues: write + pull-requests: write + +name: release-please + +jobs: + release-please: + uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/release-please.yml@release-please-v2.0.0 + secrets: inherit diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1 @@ +{} diff --git a/package.json b/package.json index 136e6af2..a9b3ff08 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "build": "tsc -b && vite build", "lint": "eslint .", "format": "prettier --write src", + "check-format": "prettier --check src", "preview": "vite preview" }, "dependencies": { diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 00000000..46540f88 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "changelog-sections": [ + { "type": "feat", "section": "๐Ÿš€ Features", "hidden": false }, + { "type": "change", "section": "๐Ÿš€ Features", "hidden": false }, + { "type": "deprecate", "section": "โš ๏ธ Changes", "hidden": false }, + { "type": "remove", "section": "โš ๏ธ Changes", "hidden": false }, + { "type": "fix", "section": "๐Ÿž Bug Fixes", "hidden": false }, + { "type": "revert", "section": "๐Ÿž Bug Fixes", "hidden": false }, + { "type": "security", "section": "๐Ÿž Bug Fixes", "hidden": false }, + { "type": "perf", "section": "โœจ Polish", "hidden": false }, + { "type": "refactor", "section": "โœจ Polish", "hidden": false }, + { "type": "style", "section": "โœจ Polish", "hidden": false }, + { "type": "build", "section": "๐Ÿงฐ Other", "hidden": false }, + { "type": "chore", "section": "๐Ÿงฐ Other", "hidden": false }, + { "type": "deps", "section": "๐Ÿงฐ Other", "hidden": true }, + { "type": "ci", "section": "๐Ÿงฐ Other", "hidden": true }, + { "type": "test", "section": "๐Ÿงช Tests", "hidden": false }, + { "type": "docs", "section": "๐Ÿ“š Documentation", "hidden": true } + ], + "packages": { + ".": { + "release-type": "node", + "changelog-path": "CHANGELOG.md" + } + } +}