Skip to content

fix action

fix action #19

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
run: git reset --hard HEAD
- name: Publish package
run: npx jsr publish