Skip to content

Commit 7ed7794

Browse files
committed
feat: add screenshot, fix README image path, simplify GitHub Actions publish workflow
1 parent cae1773 commit 7ed7794

4 files changed

Lines changed: 31 additions & 35 deletions

File tree

.github/workflows/publish.yml

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,41 @@
1-
name: Publish Package
1+
name: Publish to npm
22

33
on:
4-
workflow_dispatch:
5-
inputs:
6-
tag:
7-
description: 'npm tag (latest or next)'
8-
required: true
9-
type: choice
10-
options:
11-
- latest
12-
- next
13-
repository_dispatch:
14-
types: [publish-package]
15-
16-
permissions:
17-
id-token: write
18-
contents: read
4+
push:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- '**.md'
9+
- '.gitignore'
1910

2011
jobs:
2112
publish:
2213
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
id-token: write
2317
steps:
24-
- uses: actions/checkout@v4
18+
- name: Checkout
19+
uses: actions/checkout@v4
2520

26-
- uses: jdx/mise-action@d6e32c1796099e0f1f3ac741c220a8b7eae9e5dd
21+
- name: Setup Bun
22+
uses: oven-sh/setup-bun@v2
2723
with:
28-
install: true
29-
cache: true
30-
experimental: true
24+
bun-version: latest
3125

32-
- name: Build
33-
run: mise run build
26+
- name: Install dependencies
27+
run: bun install
3428

35-
- id: inputs
36-
uses: simenandre/setup-inputs@v1
29+
- name: Build
30+
run: bun run build
3731

38-
- name: Publish to npm with OIDC
39-
run: |
40-
TAG="${{ steps.inputs.outputs.tag }}"
41-
if [ -z "$TAG" ]; then
42-
TAG="latest"
43-
fi
32+
- name: Setup Node.js for npm publish
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: '20'
36+
registry-url: 'https://registry.npmjs.org'
4437

45-
echo "Publishing with tag: $TAG"
46-
mise run publish --tag "$TAG"
38+
- name: Publish to npm
39+
run: npm publish --access public
40+
env:
41+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Interactive terminal canvases for [OpenCode](https://opencode.ai) - spawn rich TUI interfaces for calendars, documents, flight bookings, and more directly from your AI coding assistant.
44

5-
![Canvas Demo](https://github.com/mailshieldai/opencode-canvas/raw/main/media/screenshot.png)
5+
![Canvas Demo](./media/screenshot.png)
66

77
## What is this?
88

media/screenshot.png

1.89 MB
Loading

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
},
3232
"files": [
3333
"dist",
34-
"src"
34+
"src",
35+
"media"
3536
],
3637
"dependencies": {
3738
"@opencode-ai/plugin": "^1.0.85",

0 commit comments

Comments
 (0)