Files
contracts/.github/workflows/publish-npm.yml
lendry 5075c37e5e
Some checks failed
Publish NPM Package / Publish Job (push) Failing after 1m32s
add production=false install npm dependencies
2026-05-21 21:55:50 +03:00

38 lines
819 B
YAML

name: Publish NPM Package
on:
push:
branches:
- main
jobs:
publish:
name: Publish Job
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Install yarn
run: npm install -g yarn
- name: Install deps
run: yarn install --frozen-lockfile --production=false
- name: Generate TS Protobuf
run: yarn run generate
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}