Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
name: Publish

# Publishing @cosmo/ai to the public JSR registry is permanent, so it is
# manual only. Pushes to main never publish; a manual run of this workflow
# on the main branch with the confirm input set to "publish" does.
on:
push:
branches:
- main
workflow_dispatch:
inputs:
confirm_publish:
description: 'Set to "publish" to publish @cosmo/ai to the public JSR registry'
required: true
type: string

jobs:
publish:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event.inputs.confirm_publish == 'publish'

permissions:
contents: read
Expand Down