31 lines
757 B
YAML
31 lines
757 B
YAML
name: Publish to Gitea
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
publish:
|
|
name: Publish Job
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Configure NPM for External Domain
|
|
run: |
|
|
# Используем ваш внешний домен!
|
|
EXTERNAL_REGISTRY="https://git.lendry.ru/api/packages/lendry-erp/npm/"
|
|
|
|
npm config set @lendry-erp:registry $EXTERNAL_REGISTRY
|
|
npm config set //git.lendry.ru/api/packages/lendry-erp/npm/:_authToken "${{ secrets.NPM_TOKEN }}"
|
|
|
|
- name: Publish package
|
|
run: npm publish
|