fix: authenticate to gitea npm registry
Some checks failed
Publish / Publish Job (push) Failing after 13s
Some checks failed
Publish / Publish Job (push) Failing after 13s
This commit is contained in:
10
.github/workflows/publish.yml
vendored
10
.github/workflows/publish.yml
vendored
@@ -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 }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user