Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked"
],
"ignorePatterns": ["vitest.config.ts"],
"rules": {
"@typescript-eslint/restrict-template-expressions": ["error", { "allowNumber": true }],
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
Expand Down
33 changes: 14 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,21 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install bun
uses: oven-sh/setup-bun@v2
cache: "npm"
- name: Setup Neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: stable
- name: Install dependencies
run: bun install --no-save
run: npm ci
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: bun run commitlint --from=origin/main --to=HEAD
- name: Validate code formatting
run: |
bun run format
if [[ $(git status --porcelain) ]]; then
echo "Code not properly formatted. Please run 'bun run format' locally and commit changes."
exit 1
fi
run: npm run commitlint -- --from=origin/main --to=HEAD
- name: Lint & check types
run: bun run check
run: npm run check
- name: Test
run: bun test
run: npx vitest run

Release:
needs: [Test]
Expand All @@ -46,8 +43,7 @@ jobs:
issues: write
pull-requests: write
if: |
github.ref == 'refs/heads/main' &&
github.event.repository.fork == false
github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand All @@ -56,12 +52,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install bun
uses: oven-sh/setup-bun@v2
cache: "npm"
- name: Install dependencies
run: bun install
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: bun run semantic-release
run: npm run semantic-release
Loading