Initial public release of Apophis — invariant-driven automated API testing
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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.GITEA_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/
|
||||
Reference in New Issue
Block a user