Skip to content

Remove demo.html and update index.html to enhance the Streaming Markd… #1

Remove demo.html and update index.html to enhance the Streaming Markd…

Remove demo.html and update index.html to enhance the Streaming Markd… #1

Workflow file for this run

name: Publish to npm
on:
workflow_dispatch:
push:
tags:
- 'v*.*.*'
permissions:
contents: read
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: '1.x'
- name: Install
run: bun install --no-progress
- name: Build
run: bun run build
- name: Publish (Bun)
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
bun publish --access public