fix: authenticate to gitea npm registry
Some checks failed
Publish / Publish Job (push) Failing after 13s

This commit is contained in:
Дмитрий
2026-03-26 09:52:41 +03:00
parent 577e6b9591
commit bccf85f1d7

View File

@@ -17,10 +17,12 @@ 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: Authenticate to Gitea NPM Registry
# Прописываем правильный URL с lendry-erp для вашего scope
run: |
echo "@lendry-erp:registry=https://git.lendry.ru/api/packages/lendry-erp/npm/" > .npmrc
echo "//git.lendry.ru/api/packages/lendry-erp/npm/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Publish package - name: Publish package
run: npm publish run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}