mirror of
https://github.com/LucasVbr/hono-pug-renderer.git
synced 2026-05-13 17:21:51 +00:00
38 lines
742 B
YAML
38 lines
742 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: Debug .npmrc content
|
|
run: cat ~/.npmrc
|
|
|
|
- name: Publish to npm
|
|
run: bun publish --access public
|
|
env:
|
|
npm_config_userconfig: ~/.npmrc
|