Skip to content

Commit 4c42f65

Browse files
committed
feat: migrate action repo to vite-plus
1 parent 1acdcb1 commit 4c42f65

16 files changed

Lines changed: 23621 additions & 35385 deletions

.github/workflows/ci.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,20 @@ jobs:
1616
- name: Checkout
1717
uses: actions/checkout@v6
1818

19-
- name: Set up Node
20-
uses: actions/setup-node@v6
19+
- name: Set up Vite+
20+
uses: voidzero-dev/setup-vp@v1
2121
with:
22-
node-version: 24
23-
cache: npm
22+
version: "0.1.19"
23+
node-version-file: ".node-version"
24+
cache: true
25+
run-install: |
26+
args: ['--frozen-lockfile']
2427
25-
- name: Install dependencies
26-
run: npm ci
28+
- name: Run checks
29+
run: vp check
2730

2831
- name: Run tests
29-
run: npm test
32+
run: vp test
3033

3134
- name: Build dist
32-
run: npm run build
35+
run: vp pack

.github/workflows/release.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,25 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121

22-
- name: Set up Node
23-
uses: actions/setup-node@v6
22+
- name: Set up Vite+
23+
uses: voidzero-dev/setup-vp@v1
2424
with:
25-
node-version: 24
26-
cache: npm
25+
version: "0.1.19"
26+
node-version-file: ".node-version"
27+
cache: true
28+
run-install: |
29+
args: ['--frozen-lockfile']
2730
28-
- name: Install dependencies
29-
run: npm ci
31+
- name: Run checks
32+
run: vp check
33+
34+
- name: Run tests
35+
run: vp test
3036

3137
- name: Build dist
32-
run: npm run build
38+
run: vp pack
3339

3440
- name: Semantic release
3541
env:
3642
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
run: npx semantic-release
43+
run: vp run release

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
node_modules/
2-
build/
3-
build-test/

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

README.md

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Detect changed Tessl tiles, derive semantic version bumps from Conventional Commits, review and lint each changed tile, then publish to the Tessl registry without committing version bumps back to the consumer repo.
44

5-
The action is implemented in TypeScript with the official GitHub Actions toolkit packages such as `@actions/core`, `@actions/exec`, and `@actions/github`.
5+
The action is implemented in TypeScript with the official GitHub Actions toolkit packages such as `@actions/core`, `@actions/exec`, and `@actions/github`, and is bundled with Vite+ via `vp pack`.
66

77
## What It Does
88

@@ -53,30 +53,38 @@ jobs:
5353
token: ${{ secrets.TESSL_TOKEN }}
5454

5555
- name: Publish changed tiles
56-
uses: uinaf/tessl-publish-action@v1.0.0
56+
uses: uinaf/tessl-publish-action@v1.0.2
5757
with:
5858
review-threshold: "90"
5959
```
6060
6161
## Inputs
6262
63-
| Name | Default | Description |
64-
| --- | --- | --- |
65-
| `working-directory` | `.` | Repository root to operate from |
66-
| `skills-root` | `skills` | Root directory containing tile folders |
67-
| `workflow-path` | `.github/workflows/publish-skills.yml` | Workflow path that should force a full publish when changed |
68-
| `review-threshold` | `90` | Threshold passed to `tessl skill review --threshold` |
69-
| `dry-run-max-attempts` | `50` | Max version attempts per tile before giving up |
70-
| `publish-all` | `false` | Force publishing all tiles regardless of event diff |
63+
| Name | Default | Description |
64+
| ---------------------- | -------------------------------------- | ----------------------------------------------------------- |
65+
| `working-directory` | `.` | Repository root to operate from |
66+
| `skills-root` | `skills` | Root directory containing tile folders |
67+
| `workflow-path` | `.github/workflows/publish-skills.yml` | Workflow path that should force a full publish when changed |
68+
| `review-threshold` | `90` | Threshold passed to `tessl skill review --threshold` |
69+
| `dry-run-max-attempts` | `50` | Max version attempts per tile before giving up |
70+
| `publish-all` | `false` | Force publishing all tiles regardless of event diff |
7171

7272
## Outputs
7373

74-
| Name | Description |
75-
| --- | --- |
76-
| `tiles` | JSON array of tile directories selected for this run |
74+
| Name | Description |
75+
| ---------- | --------------------------------------------------------------------------- |
76+
| `tiles` | JSON array of tile directories selected for this run |
7777
| `versions` | JSON object of successfully published tile versions keyed by tile directory |
78-
| `failures` | JSON array of per-tile failures |
78+
| `failures` | JSON array of per-tile failures |
7979

8080
## Releasing This Action
8181

82-
This repo is set up for `semantic-release` on `main`, with releases created by `github-actions[bot]`. Consumer repos should pin either an explicit release tag such as `@v1.0.0` or the full commit SHA that backs that release.
82+
This repo uses Vite+ for local verification and packaging:
83+
84+
- `vp install`
85+
- `vp check`
86+
- `vp test`
87+
- `vp pack`
88+
- `vp run release`
89+
90+
`semantic-release` still owns tag and GitHub Release creation on `main`, with releases created by `github-actions[bot]`. Consumer repos should pin either an explicit release tag such as `@v1.0.2` or the full commit SHA that backs that release.

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ outputs:
3434
description: JSON array of per-tile failures
3535
runs:
3636
using: node24
37-
main: dist/index.js
37+
main: dist/index.cjs
3838
branding:
3939
color: blue
4040
icon: upload-cloud

0 commit comments

Comments
 (0)