Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
name: release

permissions:
id-token: write
contents: read

on:
release:
types:
- published
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
environment: releases
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 18
- run: npm install
node-version: 24
cache: 'npm'
- run: npm ci
- run: npm run prepublishOnly
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
- run: |
if [[ "${{ github.event.release.prerelease }}" == "true" ]]; then
npm publish --tag next
else
npm publish
fi
19 changes: 7 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,22 @@ on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 18
- run: npm install
node-version: 24
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run typecheck
- run: npm run coverage

- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: JEST Tests
path: reports/junit.xml
reporter: jest-junit

- name: Coveralls
uses: coverallsapp/github-action@v2
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
Expand Down
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.idea/
.DS_STORE

coverage/
reports/
node_modules/
20 changes: 0 additions & 20 deletions babel.config.json

This file was deleted.

8 changes: 0 additions & 8 deletions jest.config.js

This file was deleted.

Loading