Skip to content

Commit b953f80

Browse files
Merge pull request #12 from AlejandroRM-DEV/feat/release-it
feat: 🔖 Adds release-it
2 parents 5f4b20b + 96bc324 commit b953f80

File tree

9 files changed

+3508
-158
lines changed

9 files changed

+3508
-158
lines changed

. npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.github
2+
.vscode
3+
demo

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: "20"
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Configure Git
27+
run: |
28+
git config user.name "GitHub Actions"
29+
git config user.email "[email protected]"
30+
31+
- name: Authenticate with npm registry
32+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
33+
34+
- name: Run release-it
35+
run: npm run release -- --ci

.release-it.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"$schema": "https://unpkg.com/release-it/schema/release-it.json",
3+
"git": {
4+
"commitMessage": "chore: release v${version} [skip ci]",
5+
"requireCleanWorkingDir": false
6+
},
7+
"github": {
8+
"release": true,
9+
"tokenRef": "REPO_TOKEN"
10+
},
11+
"npm": {
12+
"publish": true
13+
},
14+
"plugins": {
15+
"@release-it/conventional-changelog": {
16+
"infile": "CHANGELOG.md",
17+
"preset": {
18+
"name": "conventionalcommits",
19+
"types": [
20+
{
21+
"type": "feat",
22+
"section": "Features"
23+
},
24+
{
25+
"type": "fix",
26+
"section": "Bug Fixes"
27+
},
28+
{
29+
"type": "chore",
30+
"section": "Miscellaneous Chores"
31+
},
32+
{
33+
"type": "docs",
34+
"section": "Documentation"
35+
},
36+
{
37+
"type": "style",
38+
"section": "Styles"
39+
},
40+
{
41+
"type": "refactor",
42+
"section": "Code Refactoring"
43+
},
44+
{
45+
"type": "perf",
46+
"section": "Performance Improvements"
47+
},
48+
{
49+
"type": "test",
50+
"section": "Tests"
51+
},
52+
{
53+
"type": "build",
54+
"section": "Build System"
55+
},
56+
{
57+
"type": "ci",
58+
"section": "Continuous Integration"
59+
},
60+
{
61+
"type": "revert",
62+
"section": "Reverts"
63+
}
64+
]
65+
}
66+
}
67+
}
68+
}
File renamed without changes.
File renamed without changes.

leaflet-editable-hook/README.md

Lines changed: 0 additions & 156 deletions
This file was deleted.

0 commit comments

Comments
 (0)