Files
hono-pug-renderer/.github/workflows/publish.yaml
T

34 lines
631 B
YAML

name: Publish to npm
on:
workflow_dispatch:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install --lockfile-only
- name: Build with Bun
run: bun run build
- name: Authenticate to npm
run: bunx npm login
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to npm
run: bun publish --access public