-
Notifications
You must be signed in to change notification settings - Fork 1
feat(bun): add Tessl plugin manifest for registry publishing #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
1e5f206
feat(bun): add Tessl plugin manifest for registry publishing
amondnet 5f0496e
ci: add Tessl publish + skill-review workflows for bun
amondnet 7ddb86b
chore(bun): add author to Tessl manifest from review
amondnet 2a2452c
ci(bun): use tesslio/skill-review action for PR skill review
amondnet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: Tessl Publish | ||
|
|
||
| # Publishes the bun plugin to the Tessl registry as `pleaseai/bun` whenever | ||
| # release-please cuts a bun release. release-please tags components as | ||
| # `<component>-v<version>` (e.g. `bun-v1.3.0`) using a GitHub App token, so | ||
| # the tag push triggers this workflow. The checked-out tag already has the | ||
| # bumped version in plugins/bun/.tessl-plugin/plugin.json, so `tessl plugin | ||
| # publish` publishes exactly that version. | ||
| # | ||
| # Requires repository secret TESSL_TOKEN (create via `tessl api-key create`). | ||
| # When the secret is absent the job no-ops with a warning instead of failing. | ||
| on: | ||
| push: | ||
| tags: | ||
| - 'bun-v*' | ||
|
|
||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
|
|
||
| jobs: | ||
| publish-bun: | ||
| name: Publish pleaseai/bun to Tessl | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Check TESSL_TOKEN is configured | ||
| id: guard | ||
| env: | ||
| TESSL_TOKEN: ${{ secrets.TESSL_TOKEN }} | ||
| run: | | ||
| if [ -z "$TESSL_TOKEN" ]; then | ||
| echo "::warning::TESSL_TOKEN not configured — skipping Tessl publish" | ||
| echo "skip=true" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "skip=false" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
| - name: Checkout | ||
| if: steps.guard.outputs.skip != 'true' | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | ||
|
|
||
| - name: Set up Tessl CLI | ||
| if: steps.guard.outputs.skip != 'true' | ||
| uses: tesslio/setup-tessl@25ec223fc0da33b41b8044ff5ab2b85235f4f91e # v2 | ||
| with: | ||
| token: ${{ secrets.TESSL_TOKEN }} | ||
|
|
||
| - name: Publish plugin | ||
| if: steps.guard.outputs.skip != 'true' | ||
| run: tessl plugin publish plugins/bun |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| name: Tessl Skill Review | ||
|
|
||
| # Reviews the use-bun SKILL.md on PRs that touch it using the official | ||
| # tesslio/skill-review action, which runs `tessl skill review` on changed | ||
| # SKILL.md files and posts the quality scores as a PR comment. | ||
| # | ||
| # Auth: the skill-review composite runs tesslio/setup-tessl WITHOUT a token, and | ||
| # the tessl CLI authenticates from the TESSL_TOKEN env var — so it is provided at | ||
| # job level here. When the secret is absent the job no-ops with a warning instead | ||
| # of failing the PR. | ||
| # | ||
| # Pinning: skill-review has no tagged release yet, so it is pinned to a main | ||
| # commit SHA. Bump the SHA to adopt upstream changes. | ||
| on: | ||
| pull_request: | ||
| branches: [main] | ||
| paths: | ||
| - 'plugins/bun/skills/**' | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write # required for the action to post its review comment | ||
|
|
||
| jobs: | ||
| review-use-bun: | ||
| name: Review use-bun skill | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| TESSL_TOKEN: ${{ secrets.TESSL_TOKEN }} | ||
| steps: | ||
| - name: Check TESSL_TOKEN is configured | ||
| id: guard | ||
| run: | | ||
| if [ -z "$TESSL_TOKEN" ]; then | ||
| echo "::warning::TESSL_TOKEN not configured — skipping Tessl skill review" | ||
| echo "skip=true" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "skip=false" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
| - name: Checkout | ||
| if: steps.guard.outputs.skip != 'true' | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | ||
|
|
||
| - name: Review changed skills | ||
| if: steps.guard.outputs.skip != 'true' | ||
| uses: tesslio/skill-review@22e928dd837202b2b1d1397e0114c92e0fae5ead # main (no tagged release) | ||
| with: | ||
| path: plugins/bun | ||
| comment: 'true' | ||
| fail-threshold: '0' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "name": "pleaseai/bun", | ||
| "description": "All-in-one JavaScript/TypeScript toolkit: fast runtime, package manager, test runner, and bundler. Version-aware skill backed by the ask CLI.", | ||
| "version": "1.2.0", | ||
| "author": { | ||
| "name": "Bun", | ||
| "url": "https://github.com/oven-sh/bun" | ||
| }, | ||
| "skills": [ | ||
| "skills/use-bun" | ||
| ] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.