22 lines
577 B
YAML
22 lines
577 B
YAML
name: Publish
|
|
|
|
on:
|
|
push:
|
|
tags: ["v*"]
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
- name: Auth for Gitea npm registry
|
|
run: |
|
|
echo "@polyweave:registry=https://hub.kl1.tenere.ai/api/packages/Polyweave/npm/" > .npmrc
|
|
echo "//hub.kl1.tenere.ai/api/packages/Polyweave/npm/:_authToken=${{ secrets.PACKAGE_TOKEN }}" >> .npmrc
|
|
- run: npm publish
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|