30 lines
637 B
YAML
30 lines
637 B
YAML
name: Publish npm Package
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
|
|
- name: Build
|
|
run: |
|
|
npm install
|
|
npm run build
|
|
|
|
- name: Publish to Gitea npm
|
|
env:
|
|
NPM_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|
|
run: |
|
|
echo "//hub.kl1.tenere.ai/api/packages/apophis/npm/:_authToken=${NPM_TOKEN}" > .npmrc
|
|
npm publish --registry https://hub.kl1.tenere.ai/api/packages/apophis/npm/
|