Skip to content

Commit

Permalink
sixth commit
Browse files Browse the repository at this point in the history
  • Loading branch information
brklntmhwk committed Oct 29, 2024
1 parent 9700faf commit e11807f
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 124 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,28 @@ on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Dependencies
run: bun install --no-save
- name: Format & Lint Code
run: bun --bun run check
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -19,9 +37,9 @@ jobs:
run: bun install --no-save
- name: Build
run: bun --bun run build
release:
needs: build
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -31,12 +49,5 @@ jobs:
bun-version: latest
- name: Install Dependencies
run: bun install --no-save
- name: Set up Node.js env
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Publish
run: npm publish --access public --tag ${{ env.RELEASE_TAG }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Test Code
run: bun test
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Package release

on:
workflow_dispatch:
inputs:
release:
description: "Release type (one of): major, minor, patch"
required: true
type: choice
options:
- major
- minor
- patch

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Dependencies
run: bun install --no-save
- name: Build
run: bun --bun run build
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Dependencies
run: bun install --no-save
- name: Set up Node.js env
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Publish
run: npm publish --access public --tag ${{ env.RELEASE_TAG }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
],
"scripts": {
"build": "tsc --project tsconfig.build.json",
"format": "bunx biome format ./src",
"format": "bunx biome format ./src ./test",
"format:fix": "bunx biome format --write ./src ./test",
"lint": "bunx biome lint ./src",
"lint": "bunx biome lint ./src ./test",
"lint:fix": "bunx biome lint --write ./src ./test",
"check": "bunx biome check ./src",
"check": "bunx biome check ./src ./test",
"check:fix": "bunx biome check --write ./src ./test",
"test-type": "type-coverage"
},
Expand Down
20 changes: 20 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"schedule": ["after 3am and before 5am on the first day of the month"],
"timezone": "Asia/Tokyo",
"dependencyDashboard": true,
"packageRules": [
{
"groupName": "Dependencies (non-major update)",
"matchDepTypes": ["dependencies"],
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"automerge": true
},
{
"groupName": "DevDependencies",
"matchDepTypes": ["devDependencies"],
"automerge": true
}
]
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
const remarkCard: Plugin<[], Root> = () => {
return (tree) => {
visit(tree, isContainerDirective, (node) => {
if (!(node.name === "card-grid")) return;
if (node.name !== "card-grid") return;
if (node.children.length === 0) return;

node.data = {
Expand Down
109 changes: 0 additions & 109 deletions src/print.ts

This file was deleted.

0 comments on commit e11807f

Please sign in to comment.