Files
hono-pug-renderer/.github/workflows/publish.yaml
T
2025-05-29 09:17:27 +02:00

33 lines
625 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
- name: Build with Bun
run: |
bun run build
- name: Set up npm auth
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish to npm
run: bun publish --access public