Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": ["starlight-automatic-overview-pages-docs"]
}
35 changes: 35 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
":disableDependencyDashboard",
":disablePeerDependencies",
":semanticPrefixFixDepsChoreOthers",
":ignoreModulesAndTests",
"workarounds:all",
"helpers:pinGitHubActionDigestsToSemver",
"docker:disable"
],
"rangeStrategy": "bump",
"ignorePaths": ["**/node_modules/**"],
"commitMessageSuffix": "[skip ci]",
"assignees": [],
"reviewers": [],
"packageRules": [
{
"groupName": "github-actions",
"matchManagers": ["github-actions"]
},
{
"groupName": "npm-packages",
"matchManagers": ["npm"],
"matchDepTypes": ["dependencies", "devDependencies"],
"separateMajorMinor": true
},
{
"description": "Disable package manager version updates",
"matchPackageNames": ["pnpm"],
"matchDepTypes": ["packageManager"],
"enabled": false
}
]
}
17 changes: 11 additions & 6 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,24 @@ on:
permissions:
contents: read

env:
NODE_VERSION: 24.10.0

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

- name: Setup PNPM
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 20
node-version: ${{ env.NODE_VERSION }}
cache: "pnpm"

- name: Install Dependencies
Expand All @@ -32,6 +37,6 @@ jobs:
- name: Run pngquant
run: |
shopt -s globstar
find . -name '*.png' -exec pngquant --ext .png --force 256 {} \;
find . -name '*.png' -exec pngquant --ext .png 256 {} \;

- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
8 changes: 5 additions & 3 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ jobs:
steps:
- name: Generate GitHub App token
id: generate_token
uses: tibdex/github-app-token@v2.1.0
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}

- uses: actions/checkout@v4
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Ensure labels exist
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
Expand Down Expand Up @@ -49,7 +51,7 @@ jobs:
gh label create "🏯 styles" --description "Stylesheets or design updates" --color "550F5A" --force
gh label create "🔒 wontfix" --description "This will not be worked on" --color "FFFFFF" --force

- uses: actions/labeler@v5
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
with:
configuration-path: .github/labeler.yaml
sync-labels: true
68 changes: 41 additions & 27 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ concurrency:
cancel-in-progress: true

env:
REGISTRY: docker.io
IMAGE_OWNER: trueberryless
IMAGE_NAME: starlight-automatic-overview-pages
NODE_VERSION: 20
NODE_VERSION: 24.10.0

jobs:
changes:
Expand All @@ -24,9 +22,11 @@ jobs:
starlight-automatic-overview-pages: ${{ steps.filter.outputs.starlight-automatic-overview-pages }}
steps:
- name: Check out the repo
uses: actions/checkout@v4
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

- uses: dorny/paths-filter@v3
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
Expand All @@ -44,19 +44,21 @@ jobs:
steps:
- name: Generate GitHub App token
id: generate_token
uses: tibdex/github-app-token@v2.1.0
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}

- name: Checkout Repo
uses: actions/checkout@v4
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

- name: Setup PNPM
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: ${{ env.NODE_VERSION }}
cache: "pnpm"
Expand All @@ -66,13 +68,21 @@ jobs:

- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3
with:
commit: "[ci] release"
title: "[ci] release"
commit: "ci: release"
title: "ci: release [skip netlify]"
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Get published version
if: steps.changesets.outputs.hasChangesets == 'true'
run: |
git checkout changeset-release/main
VERSION=$(node -p "require('./packages/starlight-automatic-overview-pages/package.json').version")
NAME=$(node -p "require('./packages/starlight-automatic-overview-pages/package.json').name")
git commit --amend -m "ci: release $NAME v$VERSION" --no-edit
git push origin changeset-release/main:changeset-release/main --force

image-tag:
name: Image Tag
Expand All @@ -81,7 +91,9 @@ jobs:
IMAGE_TAG: ${{ env.IMAGE_TAG }}
steps:
- name: Check out the repo
uses: actions/checkout@v4
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

- name: Read version from package.json
id: get_version
Expand All @@ -93,25 +105,27 @@ jobs:
needs: [changes, changesets, image-tag]
if: >
(
needs.changesets.outputs.hasChangesets == 'false' &&
needs.changesets.outputs.hasChangesets == 'false' &&
(
contains(github.event.head_commit.message, 'deploy') ||
contains(github.event.head_commit.message, '[ci] release')
contains(github.event.head_commit.message, 'deploy') ||
contains(github.event.head_commit.message, 'release')
)
) ||
) ||
github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

- name: Setup PNPM
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: ${{ env.NODE_VERSION }}
cache: "pnpm"
Expand All @@ -122,9 +136,7 @@ jobs:

- run: |
cd packages/starlight-automatic-overview-pages
npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
npm publish --access public

release:
name: Release
Expand All @@ -134,10 +146,12 @@ jobs:
contents: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

- id: extract-changelog
uses: sean0x42/markdown-extract@v2.1.0
uses: sean0x42/markdown-extract@7b185cbe85263116bbf741e739e7198ba86465dc # v2.1.0
with:
file: packages/starlight-automatic-overview-pages/CHANGELOG.md
pattern: ${{ needs.image-tag.outputs.IMAGE_TAG }}
Expand All @@ -163,7 +177,7 @@ jobs:
if: env.RELEASE_SKIPPED == 'false'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}
uses: Ilshidur/action-discord@0.3.2
uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: |
# ${{ env.IMAGE_NAME }}@${{ needs.image-tag.outputs.IMAGE_TAG }}
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/welcome-bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,21 @@ jobs:
steps:
- name: Generate GitHub App token
id: generate_token
uses: tibdex/github-app-token@v2.1.0
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}

- uses: actions/checkout@v4
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Convert Repository Name to Title Case
id: convert_repo_name
run: |
REPO_NAME="${{ github.event.repository.name }}"
TITLE_CASE_REPO_NAME=$(echo "$REPO_NAME" | sed 's/-/ /g' | awk '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) tolower(substr($i,2))} 1')
echo "title_case_repo_name=$TITLE_CASE_REPO_NAME" >> $GITHUB_ENV
- uses: zephyrproject-rtos/action-first-interaction@7e6446f8439d8b4399169880c36a3a12b5747699
- uses: zephyrproject-rtos/action-first-interaction@58853996b1ac504b8e0f6964301f369d2bb22e5c
with:
repo-token: ${{ steps.generate_token.outputs.token }}
pr-opened-message: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ out
# Nuxt.js build / generate output
.nuxt
dist
.output

# Gatsby files
.cache/
Expand Down
23 changes: 22 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
{
"plugins": ["prettier-plugin-astro", "@trivago/prettier-plugin-sort-imports"],
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css"
"htmlWhitespaceSensitivity": "css",
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
}
],
"importOrder": [
"<THIRD_PARTY_MODULES>",
"^@internal/(.*)$",
"^@/models/(.*)$",
"^@/utils/(.*)$",
"^@/components/(?!ui/)(.*)$",
"^@/components/ui/(.*)$",
"^[./].*(?<!\\.(c|le|sc)ss)$",
"^[.]/[-a-zA-Z0-9_]+[.](module)[.](css|scss|less)$"
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true
}
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"sharp": "^0.33.5",
"starlight-automatic-overview-pages": "workspace:*"
},
"packageManager": "pnpm@9.6.0",
"packageManager": "pnpm@10.10.0",
"engines": {
"node": "^18.17.1 || ^20.3.0 || >=21.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineCollection } from "astro:content";
import { docsLoader } from "@astrojs/starlight/loaders";
import { docsSchema } from "@astrojs/starlight/schema";
import { defineCollection } from "astro:content";

export const collections = {
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
"version": "pnpm changeset version && pnpm i --no-frozen-lockfile"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.11"
"@changesets/changelog-github": "^0.5.2",
"@changesets/cli": "^2.29.8",
"@trivago/prettier-plugin-sort-imports": "5.2.2",
"prettier": "3.7.4",
"prettier-plugin-astro": "0.14.1"
},
"packageManager": "pnpm@9.6.0",
"packageManager": "pnpm@10.10.0",
"engines": {
"node": "^18.17.1 || ^20.3.0 || >=21.0.0"
}
Expand Down
Loading