jBase-2/.forgejo/workflows/publish.yml

27 lines
606 B
YAML
Raw Normal View History

2026-05-17 18:53:34 +02:00
name: Publish to npm
on:
release:
types: [published]
jobs:
publish-npm:
runs-on: ubuntu-latest
2026-05-17 19:18:22 +02:00
if: github.server_url == 'https://source-collab.com'
2026-05-17 18:53:34 +02:00
steps:
- name: Code auschecken
uses: actions/checkout@v4
- name: Node.js Umgebung aufsetzen
uses: actions/setup-node@v4
with:
2026-05-17 19:18:22 +02:00
node-version: '24'
2026-05-17 18:53:34 +02:00
registry-url: 'https://registry.npmjs.org'
- name: Abhängigkeiten installieren
run: npm ci
- name: Paket veröffentlichen
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}