Skip to content

Commit 4e4f548

Browse files
chore: wip
1 parent 7f7ad72 commit 4e4f548

File tree

9 files changed

+392
-871
lines changed

9 files changed

+392
-871
lines changed

.github/workflows/buddy-bot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Buddy Bot
33
on:
44
schedule:
55
# Check for rebase requests every minute
6-
- cron: '*/1 * * * *'
6+
- cron: '*/20 * * * *'
77
# Update dependencies every 2 hours
88
- cron: '0 */2 * * *'
99
# Update dashboard 15 minutes after dependency updates (ensures updates are reflected)
@@ -103,7 +103,7 @@ jobs:
103103
fi
104104
elif [ "${{ github.event_name }}" = "schedule" ]; then
105105
# Determine based on cron schedule
106-
if [ "${{ github.event.schedule }}" = "*/1 * * * *" ]; then
106+
if [ "${{ github.event.schedule }}" = "*/20 * * * *" ]; then
107107
echo "run_check=true" >> $GITHUB_OUTPUT
108108
elif [ "${{ github.event.schedule }}" = "0 */2 * * *" ]; then
109109
echo "run_update=true" >> $GITHUB_OUTPUT
@@ -221,7 +221,7 @@ jobs:
221221
echo "" >> $GITHUB_STEP_SUMMARY
222222
223223
if [ "${{ github.event_name }}" = "schedule" ]; then
224-
echo "⏰ **Scheduled Check**: Automatically checks every minute" >> $GITHUB_STEP_SUMMARY
224+
echo "⏰ **Scheduled Check**: Automatically checks every 20 minutes" >> $GITHUB_STEP_SUMMARY
225225
else
226226
echo "🖱️ **Manual Check**: Manually triggered from Actions tab" >> $GITHUB_STEP_SUMMARY
227227
fi

.github/workflows/release.yml

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,37 @@ on:
44
push:
55
tags:
66
- 'v*'
7+
workflow_dispatch:
78

89
jobs:
910
npm:
10-
name: npm
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
id-token: write
1215

1316
steps:
14-
- uses: actions/checkout@v6.0.0
17+
- name: Checkout
18+
uses: actions/checkout@v6.0.1
1519
with:
1620
fetch-depth: 0
1721

18-
- name: Install Bun
19-
uses: oven-sh/setup-bun@v2.0.2
20-
# env:
21-
# BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
22-
with:
23-
bun-version: 1.3.3
22+
- name: Setup Bun
23+
uses: oven-sh/setup-bun@v2
2424

25-
- name: Use cached node_modules
26-
uses: actions/cache@v4.3.0
27-
with:
28-
path: node_modules
29-
key: node-modules-${{ hashFiles('**/bun.lock') }}
30-
restore-keys: |
31-
node-modules-
25+
- name: Setup Pantry
26+
uses: home-lang/pantry-setup@v1
3227

3328
- name: Install Dependencies
3429
run: bun install
3530

36-
- name: Publish to npm
37-
run: ./scripts/publish.sh
38-
env:
39-
BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
40-
41-
- name: Create GitHub release
42-
run: bunx changelogithub
31+
- name: Publish
32+
run: pantry publish --npm --access public
4333
env:
44-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4535

46-
- name: Attach Binaries
47-
uses: stacksjs/action-releaser@v1.2.7
36+
- name: Create GitHub Release
37+
uses: stacksjs/action-releaser@v1.2.9
4838
with:
4939
files: |
5040
packages/logsmith/bin/logsmith-linux-x64.zip

bun.lock

Lines changed: 311 additions & 810 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bunfig.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[install]
22
registry = { url = "https://registry.npmjs.org/", token = "$BUN_AUTH_TOKEN" }
3+
linker = "hoisted"

eslint.config.ts

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

package.json

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
"build": "for dir in packages/*; do if [ -f \"$dir/package.json\" ]; then echo \"Building $dir\" && bun run --cwd $dir build; fi; done",
2525
"test": "bun test",
2626
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",
27-
"lint": "bunx --bun eslint .",
28-
"lint:fix": "bunx --bun eslint . --fix",
27+
"lint": "bunx --bun pickier lint .",
28+
"lint:fix": "bunx --bun pickier lint . --fix",
29+
"format": "bunx --bun pickier format .",
30+
"format:fix": "bunx --bun pickier format . --write",
2931
"changelog": "./logsmith --verbose",
3032
"changelog:generate": "./logsmith --output CHANGELOG.md",
3133
"release": "bun run changelog:generate && bunx --bun bumpx prompt --recursive",
@@ -35,25 +37,17 @@
3537
"typecheck": "bun --bun tsc --noEmit"
3638
},
3739
"devDependencies": {
38-
"@stacksjs/bumpx": "^0.2.4",
3940
"@stacksjs/docs": "^0.70.23",
40-
"@stacksjs/eslint-config": "^4.14.0-beta.3",
41-
"@stacksjs/gitlint": "^0.1.5",
4241
"@stacksjs/logsmith": "workspace:*",
43-
"@types/bun": "^1.3.3",
44-
"buddy-bot": "^0.9.12",
45-
"bun-git-hooks": "^0.3.1",
46-
"bun-plugin-dtsx": "^0.21.17",
47-
"pickier": "^0.1.9",
48-
"typescript": "^5.9.3"
42+
"better-dx": "^0.2.5"
4943
},
5044
"overrides": {
5145
"unconfig": "0.3.10"
5246
},
5347
"git-hooks": {
5448
"pre-commit": {
5549
"staged-lint": {
56-
"*.{js,ts,json,yaml,yml,md}": "bunx --bun eslint --fix"
50+
"*.{js,ts,json,yaml,yml,md}": "bunx --bun pickier lint --fix"
5751
}
5852
},
5953
"commit-msg": "bunx gitlint --edit .git/COMMIT_EDITMSG"

pickier.config.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import type { PickierConfig } from 'pickier'
2+
3+
const config: PickierConfig = {
4+
verbose: false,
5+
ignores: [
6+
'**/node_modules/**', '**/dist/**', '**/build/**', '**/bin/**',
7+
'**/.git/**', '**/coverage/**', '**/*.min.js', '**/bun.lock',
8+
'**/benchmarks/**', '**/.claude/**', '**/.zed/**',
9+
],
10+
lint: { extensions: ['ts', 'js'], reporter: 'stylish', cache: false, maxWarnings: -1 },
11+
format: {
12+
extensions: ['ts', 'js', 'json', 'md', 'yaml', 'yml'],
13+
trimTrailingWhitespace: true, maxConsecutiveBlankLines: 1,
14+
finalNewline: 'one', indent: 2, quotes: 'single', semi: false,
15+
},
16+
rules: { noDebugger: 'error', noConsole: 'off' },
17+
pluginRules: {
18+
'ts/no-explicit-any': 'off', 'ts/no-unused-vars': 'warn', 'ts/no-top-level-await': 'off',
19+
'regexp/no-unused-capturing-group': 'off', 'regexp/no-super-linear-backtracking': 'off',
20+
'style/brace-style': 'off', 'style/max-statements-per-line': 'off',
21+
'markdown/heading-increment': 'error', 'markdown/no-trailing-spaces': 'error',
22+
'markdown/fenced-code-language': 'warn', 'markdown/no-inline-html': 'off',
23+
'markdown/reference-links-images': 'off', 'markdown/single-title': 'off',
24+
'markdown/blanks-around-fences': 'off', 'markdown/no-duplicate-heading': 'off',
25+
'markdown/single-trailing-newline': 'off', 'markdown/link-image-style': 'off',
26+
},
27+
}
28+
29+
export default config

test-changelog.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
11
# Changelog
2+
[Compare changes](https://github.com/stacksjs/logsmith/compare/v0.2.1...HEAD)
3+
4+
### 🔧 Chores
5+
6+
- **deps**: update stacksjs/action-releaser action to v1.2.7 (#32) ([7f7ad72](https://github.com/stacksjs/logsmith/commit/7f7ad72)) _(by [renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>](https://github.com/renovate[bot]))_ ([#32](https://github.com/stacksjs/logsmith/issues/32), [#32](https://github.com/stacksjs/logsmith/issues/32))
7+
- **deps**: update all non-major dependencies (#29) ([ecf93a9](https://github.com/stacksjs/logsmith/commit/ecf93a9)) _(by Chris <chrisbreuer93@gmail.com>)_ ([#29](https://github.com/stacksjs/logsmith/issues/29), [#29](https://github.com/stacksjs/logsmith/issues/29))
8+
- **deps**: update all non-major dependencies to ^1.3.3 (#31) ([37a68f2](https://github.com/stacksjs/logsmith/commit/37a68f2)) _(by [renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>](https://github.com/renovate[bot]))_ ([#31](https://github.com/stacksjs/logsmith/issues/31), [#31](https://github.com/stacksjs/logsmith/issues/31))
9+
- **deps**: update stacksjs/action-releaser action to v1.2.7 (#28) ([c5b73c4](https://github.com/stacksjs/logsmith/commit/c5b73c4)) _(by [renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>](https://github.com/renovate[bot]))_ ([#28](https://github.com/stacksjs/logsmith/issues/28), [#28](https://github.com/stacksjs/logsmith/issues/28))
10+
- **deps**: update all non-major dependencies (#24) ([ae922bd](https://github.com/stacksjs/logsmith/commit/ae922bd)) _(by Chris <chrisbreuer93@gmail.com>)_ ([#24](https://github.com/stacksjs/logsmith/issues/24), [#24](https://github.com/stacksjs/logsmith/issues/24))
11+
- **deps**: update dependency actions/checkout to v6.0.0 (#26) ([5028e16](https://github.com/stacksjs/logsmith/commit/5028e16)) _(by Chris <chrisbreuer93@gmail.com>)_ ([#26](https://github.com/stacksjs/logsmith/issues/26), [#26](https://github.com/stacksjs/logsmith/issues/26))
12+
- **deps**: update actions/checkout action to v6 (#27) ([38a6fa3](https://github.com/stacksjs/logsmith/commit/38a6fa3)) _(by [renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>](https://github.com/renovate[bot]))_ ([#27](https://github.com/stacksjs/logsmith/issues/27), [#27](https://github.com/stacksjs/logsmith/issues/27))
13+
- **deps**: update all non-major dependencies (#25) ([dea772b](https://github.com/stacksjs/logsmith/commit/dea772b)) _(by [renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>](https://github.com/renovate[bot]))_ ([#25](https://github.com/stacksjs/logsmith/issues/25), [#25](https://github.com/stacksjs/logsmith/issues/25))
14+
- **deps**: update all non-major dependencies (#22) ([62b4e1d](https://github.com/stacksjs/logsmith/commit/62b4e1d)) _(by [renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>](https://github.com/renovate[bot]))_ ([#22](https://github.com/stacksjs/logsmith/issues/22), [#22](https://github.com/stacksjs/logsmith/issues/22))
15+
- improve cover ([d6fc44b](https://github.com/stacksjs/logsmith/commit/d6fc44b)) _(by cab-mikee <mike.cabz32@gmail.com>)_
16+
- **deps**: update all non-major dependencies (#21) ([f9f6ad8](https://github.com/stacksjs/logsmith/commit/f9f6ad8)) _(by [renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>](https://github.com/renovate[bot]))_ ([#21](https://github.com/stacksjs/logsmith/issues/21), [#21](https://github.com/stacksjs/logsmith/issues/21))
17+
- wip ([b6967d5](https://github.com/stacksjs/logsmith/commit/b6967d5)) _(by glennmichael123 <gtorregosa@gmail.com>)_
18+
- wip ([695bd4e](https://github.com/stacksjs/logsmith/commit/695bd4e)) _(by glennmichael123 <gtorregosa@gmail.com>)_
19+
- **deps**: update dependency bun-plugin-dtsx to v0.21.15 (#19) ([5ca0290](https://github.com/stacksjs/logsmith/commit/5ca0290)) _(by [renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>](https://github.com/renovate[bot]))_ ([#19](https://github.com/stacksjs/logsmith/issues/19), [#19](https://github.com/stacksjs/logsmith/issues/19))
20+
21+
### Contributors
22+
23+
- _Chris <chrisbreuer93@gmail.com>_
24+
- _[renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>](https://github.com/renovate[bot])_
25+
- _cab-mikee <mike.cabz32@gmail.com>_
26+
- _glennmichael123 <gtorregosa@gmail.com>_
227

328
[Compare changes](https://github.com/stacksjs/logsmith/compare/v0.2.0...HEAD)
429

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"exclude": [
3434
"**/dist/**",
3535
"**/node_modules/**",
36-
"**/*.d.ts"
36+
"**/*.d.ts",
37+
"pickier.config.ts"
3738
]
3839
}

0 commit comments

Comments
 (0)