contracts/.gitea/workflows/publish-npm.yml
Sergey Krylov e71b116e06
Some checks failed
Publish / Publish npm package action (push) Successful in 1m4s
Publish Go Bondings / Publish Go package action (push) Failing after 1m30s
feat: add media.proto
2026-03-29 09:01:27 +03:00

38 lines
821 B
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: 'Install dependencies'
run: yarn install --frozen-lockfile
- name: 'Build'
run: yarn run build
- name: 'Generate contracts'
run: yarn generate
- name: 'Publish to Gitea npm registry'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}