contracts/.gitea/workflows/publish.yml
Sergey Krylov 61f5758f44
Some checks failed
Publish / Publish npm package action (push) Failing after 1s
feat: replace yarn to npm
2026-01-21 06:14:40 +03:00

35 lines
862 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: 'Install dependencies'
- run: corepack enable && yarn --version
- 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'
run: echo "*** npm publish ***" && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}