Skip to content

Merge pull request #20 from chriscarrollsmith/11-probably-should-make… #13

Merge pull request #20 from chriscarrollsmith/11-probably-should-make…

Merge pull request #20 from chriscarrollsmith/11-probably-should-make… #13

Workflow file for this run

on:
push:
branches:
- '**' # Run on all branches
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'latest'
- run: npm ci
- run: npm install -g tsx
- run: npm run build # Add build step if needed
- run: npm test
publish:
needs: test
if: github.ref == 'refs/heads/main' # Only run this job on main branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'latest'
- run: npm ci
- run: npm install -g tsx
- run: npm run build # Add build step here too
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}