Skip to content

Commit 8c43be1

Browse files
committed
dev: Development changes
1 parent aaae869 commit 8c43be1

File tree

5 files changed

+80
-77
lines changed

5 files changed

+80
-77
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"template": "#{{CHANGELOG}}\n## Contributors:\n- #{{CONTRIBUTORS}}",
3+
"pr_template": "◉ #{{TITLE}} (##{{NUMBER}}) by #{{AUTHOR_NAME}} @#{{AUTHOR}}",
4+
"commit_template": "◉ #{{TITLE}} by #{{AUTHOR_NAME}} @#{{AUTHOR}}",
5+
"empty_template": "◉ no changes",
6+
"categories": [
7+
{
8+
"title": "## 🚀 Features",
9+
"labels": ["feat", "feature"]
10+
},
11+
{
12+
"title": "## 🪲 Fixes",
13+
"labels": ["fix", "bug"]
14+
},
15+
{
16+
"title": "## 🛠️ Updates",
17+
"labels": ["refactor", "update", "perf", "style"]
18+
},
19+
{
20+
"title": "## 🧪 Tests",
21+
"key": "tests",
22+
"labels": ["test"]
23+
},
24+
{
25+
"title": "## 📖 Documentation",
26+
"labels": ["doc"]
27+
},
28+
{
29+
"title": "## 💬 Other",
30+
"labels": ["ci", ""]
31+
}
32+
],
33+
"ignore_labels": [
34+
"ignore", "chore", "dev"
35+
],
36+
"sort": {
37+
"order": "ASC",
38+
"on_property": "mergedAt"
39+
},
40+
"label_extractor": [
41+
{
42+
"pattern": "^(build|chore|ci|docs|feat|fix|perf|update|refactor|revert|style|test|ignore){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
43+
"target": "$1"
44+
}
45+
]
46+
}

.github/workflows/node-build.yaml

Lines changed: 10 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ jobs:
2525
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
2626
fetch-depth: 0
2727

28+
- name: Set Branch Name
29+
id: branch
30+
run: echo "BRANCH_NAME=${{ github.ref_name }}" >> $GITHUB_ENV
31+
32+
- name: Use Branch Name
33+
run: |
34+
echo "This workflow is running on branch: $BRANCH_NAME"
35+
2836
- name: "Scan Environment"
2937
id: environment
3038
uses: panates/gh-repository-info@v1
@@ -41,53 +49,7 @@ jobs:
4149
toTag: ${{ steps.environment.outputs.lastSha }}
4250
mode: COMMIT
4351
outputFile: "COMMIT_CHANGELOG.md"
44-
configurationJson: |
45-
{
46-
"template": "#{{CHANGELOG}}\n## Contributors:\n- #{{CONTRIBUTORS}}",
47-
"pr_template": "◉ #{{TITLE}} (##{{NUMBER}}) by #{{AUTHOR_NAME}} @#{{AUTHOR}}",
48-
"commit_template": "◉ #{{TITLE}} by #{{AUTHOR_NAME}} @#{{AUTHOR}}",
49-
"empty_template": "◉ no changes",
50-
"categories": [
51-
{
52-
"title": "## 🚀 Features",
53-
"labels": ["feat", "feature"]
54-
},
55-
{
56-
"title": "## 🪲 Fixes",
57-
"labels": ["fix", "bug"]
58-
},
59-
{
60-
"title": "## 🛠️ Updates",
61-
"labels": ["refactor", "update", "perf", "style"]
62-
},
63-
{
64-
"title": "## 🧪 Tests",
65-
"key": "tests",
66-
"labels": ["test"]
67-
},
68-
{
69-
"title": "## 📖 Documentation",
70-
"labels": ["doc"]
71-
},
72-
{
73-
"title": "## 💬 Other",
74-
"labels": ["ci", ""]
75-
}
76-
],
77-
"ignore_labels": [
78-
"ignore", "chore", "dev"
79-
],
80-
"sort": {
81-
"order": "ASC",
82-
"on_property": "mergedAt"
83-
},
84-
"label_extractor": [
85-
{
86-
"pattern": "^(build|chore|ci|docs|feat|fix|perf|update|refactor|revert|style|test|ignore){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
87-
"target": "$1"
88-
}
89-
]
90-
}
52+
configuration: 'changelog-config.json'
9153

9254
- name: "debug 1"
9355
run: |
@@ -104,31 +66,6 @@ jobs:
10466
#
10567

10668
- name: Parse Directories
107-
uses: panates/github-actions/.github/actions/node-build@dev
69+
uses: panates/github-actions/.github/actions/node-build@${{ github.ref_name }}
10870
with:
10971
packages: ${{ steps.environment.outputs.packages }}
110-
# shell: bash
111-
# run: |
112-
# PACKAGES='${{ steps.environment.outputs.packages }}'
113-
#
114-
# echo "Processing packages..."
115-
# echo "$PACKAGES" | jq -c '.[]' | while IFS= read -r package; do
116-
# name=$(echo "$package" | jq -r '.name')
117-
# version=$(echo "$package" | jq -r '.version')
118-
# directory=$(echo "$package" | jq -r '.directory')
119-
# buildDir=$(echo "$package" | jq -r '.buildDir')
120-
#
121-
# echo "Package Name: $name"
122-
# echo "Package Version: $version"
123-
# echo "directory: $directory"
124-
# echo "buildDir: $buildDir"
125-
#
126-
# BUILD_DIR="$directory"
127-
# if [ -d "$BUILD_DIR" ]; then
128-
# echo "Found $BUILD_DIR"
129-
# else
130-
# echo "Not Found $BUILD_DIR"
131-
# continue
132-
# fi
133-
#
134-
# done

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run build

package-lock.json

Lines changed: 18 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
"tag:version": "git tag v$(node -p \"require('./package.json').version\") -f",
77
"tag:major": "git tag -d v1 && git push origin :refs/tags/v1 && git tag v1 v$(node -p \"require('./package.json').version\") -f",
88
"tag:push": "git push origin --tags",
9-
"build": "node .github/actions/node-build/esbuild.config.js"
9+
"build": "node .github/actions/node-build/esbuild.config.js",
10+
"prepare": "husky"
1011
},
1112
"devDependencies": {
12-
"esbuild": "^0.25.1",
1313
"@actions/core": "^1.11.1",
14-
"@actions/github": "^6.0.0"
14+
"@actions/github": "^6.0.0",
15+
"esbuild": "^0.25.1",
16+
"husky": "^9.1.7"
1517
}
1618
}

0 commit comments

Comments
 (0)