Skip to content

v1.8.0

v1.8.0 #59

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 24
registry-url: https://registry.npmjs.org/
cache: npm
- name: Install dependencies
run: npm ci
- name: Build package
run: npm run build
- name: Verify type declarations are not empty
run: |
for f in dist/index.d.ts dist/runner.d.ts dist/bundled.d.ts dist/vite-plugin.d.ts dist/runner-ci.d.ts dist/ui.d.ts; do
if [ ! -f "$f" ]; then
echo "FAIL: $f does not exist"
exit 1
fi
if [ "$(cat "$f" | grep -cv '^export {}')" -eq 0 ]; then
echo "FAIL: $f has no real exports (empty type declarations)"
exit 1
fi
echo "OK: $f"
done
- name: Publish to npm
run: |
if [ "${{ github.event.release.prerelease }}" = "true" ]; then
npm publish --access public --tag beta
else
npm publish --access public
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}