feat: replace yarn to npm
All checks were successful
Publish / Publish npm package action (push) Successful in 10s

This commit is contained in:
Sergey Krylov 2026-01-21 05:58:41 +03:00
parent 57e5da7d5e
commit 7890c3719e

View File

@ -17,15 +17,6 @@ jobs:
with:
node-version: 20
- name: Configure npm auth
run: |
echo "@teacinema:registry=https://git.ksv741.keenetic.pro/api/packages/teacinema/npm" >> ~/.npmrc
echo "//git.ksv741.keenetic.pro/api/packages/teacinema/npm/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
echo "*** cat ~/.npmrc ***"
cat ~/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: 'Install dependencies'
run: echo "*** npm ci ***" && npm ci
@ -33,6 +24,11 @@ jobs:
run: echo "*** npm run generate ***" && npm run generate
- name: 'Publish to Gitea npm registry'
run: echo "*** npm publish ***" && npm publish
run: |
echo "@teacinema:registry=https://git.ksv741.keenetic.pro/api/packages/teacinema/npm/" >> ~/.npmrc
echo "//git.ksv741.keenetic.pro/api/packages/teacinema/npm/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
echo "*** cat ~/.npmrc ***"
cat ~/.npmrc
echo "*** npm publish ***" && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}