Files
SDK-TypeScript/.gitea/workflows/publish.yml
Almsss 7daf542961
Some checks failed
Setup testing environment and test the code / build (push) Has been cancelled
Update .gitea/workflows/publish.yml
2026-04-08 13:55:29 +02:00

30 lines
736 B
YAML

name: Publish to NPM
on:
workflow_dispatch:
release:
types: [published]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
- name: Install dependencies
run: npm ci
- name: Build TypeScript
run: npm run build
- name: Add NPM token
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: Publish to NPM
run: npm publish --access public