2026-01-11 05:56:45 -08:00
|
|
|
# Forgejo Actions workflow for config packages (no build step)
|
|
|
|
|
# Copy to: .forgejo/workflows/publish.yml
|
|
|
|
|
|
|
|
|
|
name: Publish Config
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches: [main, master]
|
|
|
|
|
pull_request:
|
|
|
|
|
branches: [main, master]
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
lint:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
|
with:
|
|
|
|
|
node-version: '20'
|
|
|
|
|
|
|
|
|
|
- name: Validate JSON
|
|
|
|
|
run: |
|
|
|
|
|
for f in *.json; do
|
|
|
|
|
[ -f "$f" ] && jq empty "$f" && echo "Valid: $f"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
publish:
|
|
|
|
|
needs: lint
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
|
with:
|
|
|
|
|
node-version: '20'
|
2026-06-10 21:07:42 -07:00
|
|
|
registry-url: 'http://forge.black.lan/api/packages/lilith/npm/'
|
2026-01-11 05:56:45 -08:00
|
|
|
|
|
|
|
|
- name: Publish
|
|
|
|
|
run: npm publish --access public
|
|
|
|
|
env:
|
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|