.forgejo/workflows/publish.yml aktualisiert
This commit is contained in:
parent
91619ad5aa
commit
c82ae90496
1 changed files with 23 additions and 7 deletions
|
|
@ -1,27 +1,43 @@
|
|||
name: Publish to npm
|
||||
name: Publish to npm & Source-Collab
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
publish-npm:
|
||||
publish-dual:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.server_url == 'https://source-collab.com'
|
||||
steps:
|
||||
- name: Code auschecken
|
||||
- name: 📥 Code checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Node.js Umgebung aufsetzen
|
||||
- name: ⚙️ Setup Node for NPMJS
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- name: Abhängigkeiten installieren
|
||||
- name: 📦 install Dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Paket veröffentlichen
|
||||
- name: 🚀 Publish to NPMJS
|
||||
run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
- name: ⚙️ Setup Node for Source-Collab
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24'
|
||||
registry-url: 'https://source-collab.com/api/packages/svenMinio/npm/'
|
||||
scope: '@svenMinio'
|
||||
|
||||
- name: 🥷 Customize package names for Source-Collab
|
||||
run: |
|
||||
npm pkg set name="@svenMinio/jbase-2"
|
||||
|
||||
- name: 🚀 Publish to Source-Collab
|
||||
run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.FORGEJO_PACKAGE_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue