common/.gitea/workflows/publish.yml
Sergey Krylov 8124ac2387
Some checks failed
Publish / Publish npm package action (push) Failing after 11s
feat: add rpc exception enum
2026-01-25 11:37:07 +03:00

43 lines
1.1 KiB
YAML

name: Publish
on:
push:
branches:
- main
jobs:
Publish npm package action:
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
- name: 'Setup dependencies'
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://git.ksv741.keenetic.pro/api/packages/teacinema/npm/
scope: '@teacinema'
- name: 'Enable corepack'
run: corepack enable
- name: Create .npmrc
run: |
touch .npmrc
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
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: 'Install dependencies'
run: yarn install --frozen-lockfile
- name: 'Generate contracts'
run: yarn run build
- name: 'Publish to Gitea npm registry'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}