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

27 lines
No EOL
606 B
YAML

name: Publish to npm
on:
release:
types: [published]
jobs:
publish-npm:
runs-on: ubuntu-latest
if: github.server_url == 'https://source-collab.com'
steps:
- name: Code auschecken
uses: actions/checkout@v4
- name: Node.js Umgebung aufsetzen
uses: actions/setup-node@v4
with:
node-version: '24'
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 }}