Skip to content

Commit c3bd571

Browse files
committed
chore: update all
1 parent 21fbbfd commit c3bd571

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+4263
-3265
lines changed

.cz.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
{
2-
"path": "cz-conventional-changelog"
1+
{
2+
"path": "cz-conventional-changelog"
33
}

.github/workflows/publish.yml

Lines changed: 102 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,103 @@
1-
name: Manual Publish (Legacy)
2-
3-
on:
4-
workflow_dispatch:
5-
inputs:
6-
version-bump:
7-
description: 'Version bump type (DEPRECATED: Use semantic-release instead)'
8-
required: true
9-
default: 'patch'
10-
type: choice
11-
options:
12-
- patch
13-
- minor
14-
- major
15-
skip-tests:
16-
description: 'Skip running tests before publish'
17-
required: false
18-
default: false
19-
type: boolean
20-
21-
jobs:
22-
publish:
23-
runs-on: ubuntu-latest
24-
25-
steps:
26-
- name: Checkout code
27-
uses: actions/checkout@v4
28-
with:
29-
# Fetch full history for version bumping
30-
fetch-depth: 0
31-
token: ${{ secrets.GITHUB_TOKEN }}
32-
33-
- name: Install pnpm
34-
uses: pnpm/action-setup@v4
35-
with:
36-
version: latest
37-
38-
- name: Setup Node.js
39-
uses: actions/setup-node@v4
40-
with:
41-
node-version: 20
42-
registry-url: 'https://registry.npmjs.org'
43-
cache: 'pnpm'
44-
45-
- name: Install dependencies
46-
run: pnpm install --frozen-lockfile
47-
48-
- name: Run full test suite (unless skipped)
49-
if: ${{ !inputs.skip-tests }}
50-
run: pnpm run prepublishOnly
51-
52-
- name: Build only (if tests skipped)
53-
if: ${{ inputs.skip-tests }}
54-
run: pnpm run build
55-
56-
- name: Configure git
57-
run: |
58-
git config --local user.email "[email protected]"
59-
git config --local user.name "GitHub Action"
60-
61-
- name: Bump version
62-
run: |
63-
pnpm version ${{ inputs.version-bump }} --no-git-tag-version
64-
echo "NEW_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
65-
66-
- name: Update package.json and create commit
67-
run: |
68-
git add package.json
69-
git commit -m "chore: bump version to v${{ env.NEW_VERSION }} [skip ci]"
70-
git tag "v${{ env.NEW_VERSION }}"
71-
72-
- name: Push changes and tags
73-
run: |
74-
git push origin main
75-
git push origin "v${{ env.NEW_VERSION }}"
76-
77-
- name: Publish to npm
78-
run: pnpm publish --access public --no-git-checks
79-
env:
80-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
81-
82-
- name: Create GitHub Release
83-
uses: actions/create-release@v1
84-
env:
85-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86-
with:
87-
tag_name: "v${{ env.NEW_VERSION }}"
88-
release_name: "Release v${{ env.NEW_VERSION }}"
89-
draft: false
90-
prerelease: false
91-
body: |
92-
## Changes in v${{ env.NEW_VERSION }}
93-
94-
This release was created automatically from the main branch.
95-
96-
### Installation
97-
```bash
98-
npm install zonr@${{ env.NEW_VERSION }}
99-
# or
100-
pnpm add zonr@${{ env.NEW_VERSION }}
101-
```
102-
1+
name: Manual Publish (Legacy)
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version-bump:
7+
description: 'Version bump type (DEPRECATED: Use semantic-release instead)'
8+
required: true
9+
default: 'patch'
10+
type: choice
11+
options:
12+
- patch
13+
- minor
14+
- major
15+
skip-tests:
16+
description: 'Skip running tests before publish'
17+
required: false
18+
default: false
19+
type: boolean
20+
21+
jobs:
22+
publish:
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
with:
29+
# Fetch full history for version bumping
30+
fetch-depth: 0
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Install pnpm
34+
uses: pnpm/action-setup@v4
35+
with:
36+
version: latest
37+
38+
- name: Setup Node.js
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: 20
42+
registry-url: 'https://registry.npmjs.org'
43+
cache: 'pnpm'
44+
45+
- name: Install dependencies
46+
run: pnpm install --frozen-lockfile
47+
48+
- name: Run full test suite (unless skipped)
49+
if: ${{ !inputs.skip-tests }}
50+
run: pnpm run prepublishOnly
51+
52+
- name: Build only (if tests skipped)
53+
if: ${{ inputs.skip-tests }}
54+
run: pnpm run build
55+
56+
- name: Configure git
57+
run: |
58+
git config --local user.email "[email protected]"
59+
git config --local user.name "GitHub Action"
60+
61+
- name: Bump version
62+
run: |
63+
pnpm version ${{ inputs.version-bump }} --no-git-tag-version
64+
echo "NEW_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
65+
66+
- name: Update package.json and create commit
67+
run: |
68+
git add package.json
69+
git commit -m "chore: bump version to v${{ env.NEW_VERSION }} [skip ci]"
70+
git tag "v${{ env.NEW_VERSION }}"
71+
72+
- name: Push changes and tags
73+
run: |
74+
git push origin main
75+
git push origin "v${{ env.NEW_VERSION }}"
76+
77+
- name: Publish to npm
78+
run: pnpm publish --access public --no-git-checks
79+
env:
80+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
81+
82+
- name: Create GitHub Release
83+
uses: actions/create-release@v1
84+
env:
85+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
with:
87+
tag_name: "v${{ env.NEW_VERSION }}"
88+
release_name: "Release v${{ env.NEW_VERSION }}"
89+
draft: false
90+
prerelease: false
91+
body: |
92+
## Changes in v${{ env.NEW_VERSION }}
93+
94+
This release was created automatically from the main branch.
95+
96+
### Installation
97+
```bash
98+
npm install zonr@${{ env.NEW_VERSION }}
99+
# or
100+
pnpm add zonr@${{ env.NEW_VERSION }}
101+
```
102+
103103
See [CHANGELOG.md](CHANGELOG.md) for detailed changes.

.github/workflows/release.yml

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
name: Release
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
workflow_dispatch:
8-
9-
permissions:
10-
contents: write
11-
issues: write
12-
pull-requests: write
13-
14-
jobs:
15-
release:
16-
runs-on: ubuntu-latest
17-
18-
steps:
19-
- name: Checkout code
20-
uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 0
23-
token: ${{ secrets.GITHUB_TOKEN }}
24-
25-
- name: Install pnpm
26-
uses: pnpm/action-setup@v4
27-
with:
28-
version: latest
29-
30-
- name: Setup Node.js
31-
uses: actions/setup-node@v4
32-
with:
33-
node-version: 20
34-
registry-url: 'https://registry.npmjs.org'
35-
cache: 'pnpm'
36-
37-
- name: Install dependencies
38-
run: pnpm install --frozen-lockfile
39-
40-
- name: Run full test suite
41-
run: pnpm run prepublishOnly
42-
43-
- name: Release
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
issues: write
12+
pull-requests: write
13+
14+
jobs:
15+
release:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: Install pnpm
26+
uses: pnpm/action-setup@v4
27+
with:
28+
version: latest
29+
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
registry-url: 'https://registry.npmjs.org'
35+
cache: 'pnpm'
36+
37+
- name: Install dependencies
38+
run: pnpm install --frozen-lockfile
39+
40+
- name: Run full test suite
41+
run: pnpm run prepublishOnly
42+
43+
- name: Release
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4848
run: pnpm run release

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
4-
pnpm run lint && pnpm run typecheck
1+
pnpm lint && pnpm typecheck

.idea/.gitignore

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/zonr.iml

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)