Compare commits
5 Commits
31530fe899
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 55b0262799 | |||
| 7ca78b74b8 | |||
| db1c3f3663 | |||
| 687321d2cf | |||
| 3ac1daf7e9 |
@@ -0,0 +1,28 @@
|
||||
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/
|
||||
@@ -1,44 +0,0 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: [20.x, 22.x]
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
- name: Run source tests
|
||||
run: npm run test:src
|
||||
|
||||
- name: Run CLI tests
|
||||
run: npm run test:cli
|
||||
|
||||
- name: Determinism smoke (fixed seed)
|
||||
run: npx tsx --test src/test/cli/verify-ux.test.ts --test-name-pattern "verify repeated runs with fixed seed produce identical artifacts"
|
||||
|
||||
- name: Run packaging tests
|
||||
run: npx tsx --test src/test/cli/packaging.test.ts
|
||||
Reference in New Issue
Block a user