First upload version 0.0.1

This commit is contained in:
Neyra
2026-02-05 15:27:49 +08:00
commit 8e9b7201ed
4182 changed files with 593136 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
name: Release
on:
push:
branches:
- master
- next
- beta
- "*.x"
jobs:
release:
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
- run: npm ci
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@@ -0,0 +1,66 @@
name: Test
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
test-deno:
runs-on: ubuntu-latest
needs: test-node
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x # Run with latest stable Deno.
- run: deno install
- run: deno test
test-bun:
runs-on: ubuntu-latest
needs: test-node
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun test
test-node:
runs-on: ubuntu-latest
strategy:
matrix:
node_version:
- 12
- 14
- 16
- 18
- 20
- 22
- 24
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: npm
- run: npm ci
- run: npm run test:node
test-types:
runs-on: ubuntu-latest
needs:
- test-node
- test-deno
- test-bun
steps:
- uses: actions/checkout@v2
- run: npm ci
- run: npm run lint
- run: npm run test:types

View File

@@ -0,0 +1,25 @@
name: Update Prettier
on:
push:
branches:
- renovate/prettier-*
jobs:
update_prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
version: 12
cache: npm
node-version: 16
- run: npm ci
- run: npm run lint:fix
- uses: gr2m/create-or-update-pull-request-action@v1.x
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: Prettier updated
body: An update to prettier required updates to your code.
branch: ${{ github.ref }}
commit-message: "style: prettier"