fix: workflow first variant env token
All checks were successful
Publish / Publish Job (push) Successful in 14s
All checks were successful
Publish / Publish Job (push) Successful in 14s
This commit is contained in:
17
.github/workflows/publish.yml
vendored
17
.github/workflows/publish.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Publish to Gitea
|
name: Publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -17,13 +17,10 @@ jobs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
|
registry-url: "https://git.lendry.ru/api/packages/lendry-erp/npm/"
|
||||||
|
scope: "@lendry-erp"
|
||||||
|
|
||||||
- name: Publish package via Local IP (DIAGNOSTIC)
|
- name: Publish package
|
||||||
run: |
|
run: npm publish
|
||||||
# Временно идем напрямую к Gitea в обход Nginx Proxy Manager
|
env:
|
||||||
LOCAL_REGISTRY="http://192.168.10.248:3002/api/packages/lendry-erp/npm/"
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
npm config set @lendry-erp:registry $LOCAL_REGISTRY
|
|
||||||
npm config set //192.168.10.248:3002/api/packages/lendry-erp/npm/:_authToken "${{ secrets.NPM_TOKEN }}"
|
|
||||||
|
|
||||||
npm publish
|
|
||||||
|
|||||||
Reference in New Issue
Block a user