Skip to content

fix action

fix action #22

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: |
npm install -g jest typescript
npm install --save-dev ts-jest @types/jest
- name: Run tests
run: jest --coverage
- name: Reset repository
id: reset_repo
run: |
rm package.json package-lock.json
- name: Publish package
run: npx jsr publish --allow-dirty
if: ${{ steps.reset_repo.outcome == 'success' }}