29 lines
719 B
YAML
29 lines
719 B
YAML
name: Publish npm Package
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: node-22
|
|
steps:
|
|
- name: Route Git to external Gitea URL
|
|
run: git config --global url."https://hub.kl1.tenere.ai/".insteadOf "http://gitea:3000/"
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install
|
|
run: npm install --registry https://packages.tenere.ai
|
|
|
|
- name: Build
|
|
run: 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/
|