feat: replace yarn to npm
All checks were successful
Publish / Publish npm package action (push) Successful in 10s
All checks were successful
Publish / Publish npm package action (push) Successful in 10s
This commit is contained in:
parent
57e5da7d5e
commit
7890c3719e
@ -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 }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user