Files
prettier-config/.github/workflows/publish.yml
Дмитрий bccf85f1d7
Some checks failed
Publish / Publish Job (push) Failing after 13s
fix: authenticate to gitea npm registry
2026-03-26 09:52:41 +03:00

29 lines
734 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Publish
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: 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
run: npm publish