Update .forgejo/workflows/publish.yml
This commit is contained in:
parent
6c251856ff
commit
121a4f6d56
1 changed files with 2 additions and 6 deletions
|
|
@ -1,6 +1,5 @@
|
|||
name: Publish to npm
|
||||
|
||||
# Der Trigger: Führe dies NUR aus, wenn ein neues Release veröffentlicht wird
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
|
@ -8,6 +7,7 @@ on:
|
|||
jobs:
|
||||
publish-npm:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.server_url == 'https://source-collab.com'
|
||||
steps:
|
||||
- name: Code auschecken
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -15,16 +15,12 @@ jobs:
|
|||
- name: Node.js Umgebung aufsetzen
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24' # Passt für moderne JS/TS Projekte
|
||||
node-version: '24'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- name: Abhängigkeiten installieren
|
||||
run: npm ci
|
||||
|
||||
# Optional: Falls du einen Build-Step hast (z.B. TypeScript zu JS kompilieren)
|
||||
# - name: Projekt bauen
|
||||
# run: npm run build
|
||||
|
||||
- name: Paket veröffentlichen
|
||||
run: npm publish
|
||||
env:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue