Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
22e478d
chore: rename twodft to dallay across all package references
yacosta738 May 15, 2026
95a60db
ci: replace changesets with release-please for automated releases
yacosta738 May 15, 2026
89a29a7
fix(ci): update lockfile and pin release-please-action to v5.0.0 SHA
yacosta738 May 15, 2026
978a4e6
chore(lint): Prettier fix
github-actions[bot] May 15, 2026
d2e01db
fix: replace remaining @twodft/astro-icon references with @dallay/ast…
yacosta738 May 15, 2026
0ec2740
chore: release @dallay/astro-icon 1.3.0
dallay-bot[bot] May 15, 2026
82a1a7d
chore(lint): Prettier fix
github-actions[bot] May 15, 2026
35edc69
chore: fix Starlight 0.39 sidebar API, stale @twodft imports, and pin…
yacosta738 May 15, 2026
0cb969b
chore(lint): Prettier fix
github-actions[bot] May 15, 2026
175b371
fix(security): override vulnerable transitive deps via pnpm overrides
yacosta738 May 15, 2026
c125cca
chore: merge remote changes
yacosta738 May 15, 2026
e19e558
chore: regenerate lockfile with security overrides applied
yacosta738 May 15, 2026
aa8271e
chore(lint): Prettier fix
github-actions[bot] May 15, 2026
7611ee4
Merge pull request #2 from dallay/release-please--branches--main--com…
yacosta738 May 15, 2026
f080d7b
fix(ci): correct pnpm/action-setup SHA in release and release-please …
yacosta738 May 15, 2026
0094344
fix(ci): skip lint auto-fix on Dependabot PRs to avoid bot push 403
yacosta738 May 15, 2026
ac2de22
fix(ci): use contains() to reliably exclude dependabot from lint auto…
yacosta738 May 15, 2026
ddb62e1
chore: migrate from prettier to biome for formatting and linting
yacosta738 May 16, 2026
7c6abde
style: apply biome auto-fix across codebase
yacosta738 May 16, 2026
d8e7a55
fix(lint): suppress false positive noUnusedVariables on viewBox extra…
yacosta738 May 16, 2026
80956b5
Create SECURITY.md for security policy
yacosta738 May 16, 2026
eb70f5d
chore(deps): bump the npm_and_yarn group across 1 directory with 2 up…
dependabot[bot] May 16, 2026
0a56a2e
ci: add deploy jobs for www, service, and demo on release
yacosta738 May 16, 2026
ef1acbc
Ignore Vercel artifacts in packages/www
yacosta738 May 16, 2026
f7f2398
chore: release @dallay/astro-icon 1.3.1 (#5)
dallay-bot[bot] May 16, 2026
790e940
fix(ci): build core before demo, remove broken npm upgrade step
yacosta738 May 16, 2026
af292bc
fix(a11y): WCAG 2.1 accessibility improvements across Icon component …
yacosta738 May 16, 2026
a6a717a
fix(security): add GITHUB_TOKEN permissions and patch yaml CVE
yacosta738 May 16, 2026
2b68b47
chore(deps): update lockfile with yaml override >= 2.8.3
yacosta738 May 16, 2026
2292530
chore: release @dallay/astro-icon 1.3.2 (#7)
dallay-bot[bot] May 16, 2026
ca5c1ec
docs(README): update installation instructions and add package manage…
yacosta738 May 16, 2026
73aa8f2
chore: release @dallay/astro-icon 1.3.3 (#8)
dallay-bot[bot] May 16, 2026
b6a4eb5
docs: update all references from astro-icon to @dallay/astro-icon
yacosta738 May 16, 2026
7ed6b1c
Use @dallay/astro-icon in docs
yacosta738 May 16, 2026
fbc4abd
chore: Bump Node version to 24.15.0
yacosta738 May 16, 2026
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
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/config.json

This file was deleted.

3 changes: 3 additions & 0 deletions .github/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"packages/core": "1.3.3"
}
30 changes: 30 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "node",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"pull-request-title-pattern": "chore: release${component} ${version}",
"changelog-sections": [
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "deps", "section": "Dependencies" },
{ "type": "revert", "section": "Reverts" },
{ "type": "docs", "section": "Documentation", "hidden": false },
{ "type": "chore", "section": "Miscellaneous", "hidden": true },
{ "type": "refactor", "section": "Miscellaneous", "hidden": true },
{ "type": "test", "section": "Miscellaneous", "hidden": true },
{ "type": "build", "section": "Miscellaneous", "hidden": true },
{ "type": "ci", "section": "Miscellaneous", "hidden": true }
],
"packages": {
"packages/core": {
"component": "@dallay/astro-icon",
"release-type": "node",
"package-name": "@dallay/astro-icon",
"changelog-path": "CHANGELOG.md",
"tag-name": "v${version}",
"release-as": ""
}
}
}
68 changes: 45 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,42 +21,64 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install

# Lint autofix cannot run on forks, so just skip those! See https://github.com/wearerequired/lint-action/issues/13
- name: Lint (External)
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login != github.repository_owner }}
# Check only — forks and Dependabot (no write access to push fixes)
- name: Lint (check only — forks and Dependabot)
if: |
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login != github.repository_owner) ||
contains(github.actor, 'dependabot')
run: pnpm run lint

# Otherwise, run lint autofixer
- name: Lint
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner }}
uses: wearerequired/lint-action@v2

# Auto-fix + commit — push to main or human PRs from same repo
- name: Lint (auto-fix)
if: |
!contains(github.actor, 'dependabot') &&
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner)
run: pnpm run lint:fix || true

- name: Commit lint fixes
if: |
!contains(github.actor, 'dependabot') &&
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
prettier: true
auto_fix: true
git_name: github-actions[bot]
git_email: github-actions[bot]@users.noreply.github.com
commit_message: 'chore(lint): ${linter} fix'
github_token: ${{ secrets.GITHUB_TOKEN }}
neutral_check_on_warning: true
HEAD_REF: ${{ github.head_ref }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if git diff --quiet; then
echo "No lint fixes needed."
exit 0
fi
git add -A
git commit -m "chore(lint): biome auto-fix"
# actions/checkout leaves a detached HEAD on PR events.
# Push back to the source branch explicitly; --force-with-lease
# prevents overwriting concurrent pushes that aren't ours.
if [ -n "$HEAD_REF" ]; then
git push origin "HEAD:${HEAD_REF}" --force-with-lease
else
git push
fi

smoke:
name: Smoke Test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 22
cache: 'pnpm'
Expand Down
159 changes: 159 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
name: Release Please

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

defaults:
run:
shell: bash

jobs:
release-please:
name: Release Please
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
pull-requests: write
outputs:
release_created: ${{ steps.release.outputs.releases_created }}
tag_name: ${{ steps.release.outputs['packages/core--tag_name'] }}
version: ${{ steps.release.outputs['packages/core--version'] }}
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Run Release Please
id: release
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
with:
token: ${{ steps.app-token.outputs.token }}
config-file: .github/release-please-config.json
manifest-file: .github/.release-please-manifest.json

publish:
name: Publish to npm
runs-on: ubuntu-latest
timeout-minutes: 15
needs: release-please
if: needs.release-please.outputs.release_created == 'true'
environment: npm
permissions:
contents: read
id-token: write
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: ${{ steps.app-token.outputs.token }}
ref: ${{ needs.release-please.outputs.tag_name }}

- name: Setup pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.1.0

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build package
run: pnpm --filter @dallay/astro-icon run build

- name: Publish to npm
working-directory: packages/core
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

deploy-www:
name: Deploy www to Vercel
runs-on: ubuntu-latest
timeout-minutes: 5
needs: release-please
if: needs.release-please.outputs.release_created == 'true'
steps:
- name: Trigger Vercel deploy hook
run: curl -s -X POST "${{ secrets.VERCEL_DEPLOY_HOOK_WWW }}"

deploy-service:
name: Deploy service to Vercel
runs-on: ubuntu-latest
timeout-minutes: 5
needs: release-please
if: needs.release-please.outputs.release_created == 'true'
steps:
- name: Trigger Vercel deploy hook
run: curl -s -X POST "${{ secrets.VERCEL_DEPLOY_HOOK_SERVICE }}"

deploy-demo:
name: Deploy demo to Cloudflare Pages
runs-on: ubuntu-latest
timeout-minutes: 15
needs: release-please
if: needs.release-please.outputs.release_created == 'true'
permissions:
contents: read
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: ${{ steps.app-token.outputs.token }}
ref: ${{ needs.release-please.outputs.tag_name }}

- name: Setup pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.1.0

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build core and demo
run: |
pnpm --filter @dallay/astro-icon run build
pnpm --filter demo run build

- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: a6500bbcdec00bf4c9fc57052081baa7
command: pages deploy dist --project-name=astro-icon-demo --branch=main
workingDirectory: demo
Loading