contracts/.gitea/workflows/publish.yml
Sergey Krylov f596a40434
Some checks failed
Publish / Publish npm package action (push) Failing after 2s
feat: replace yarn to npm
2026-01-21 06:05:54 +03:00

33 lines
799 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
- name: 'Install dependencies'
run: echo "*** npm ci ***" && npm ci
- name: 'Generate contracts'
run: echo "*** npm run generate ***" && npm run generate
- name: 'Publish to Gitea npm registry'
uses: actions/setup-node@v4
with:
registry-url: 'https://git.ksv741.keenetic.pro/api/packages/teacinema/npm/'
run: echo "*** npm publish ***" && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}