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
34 changes: 17 additions & 17 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node CI
name: Node Package CI

on: [push, pull_request]

Expand All @@ -11,24 +11,24 @@ jobs:
node-version: [18.x, 20.x, 22.x, 24.x]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm ci
- name: Install dependencies
run: npm ci

- name: Lint and format check
run: npm run check
- name: Lint and format check
run: npm run check

- name: Build
run: npm run build
- name: Build
run: npm run build

- name: Test
run: npm test
env:
CI: true
- name: Test
run: npm test
env:
CI: true
54 changes: 0 additions & 54 deletions .github/workflows/npmpublish.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/publish-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish NPM package to GitHub Packages

on:
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Use Node.js 24.x
uses: actions/setup-node@v5
with:
node-version: "24.x"
cache: "npm"
- run: npm ci
- run: npm run build
- run: npm test

publish-github:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "24.x"
registry-url: "https://npm.pkg.github.com"
scope: "@lopatnov"
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.github_token }}
35 changes: 35 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish NPM package to npmjs.org

on:
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Use Node.js 24.x
uses: actions/setup-node@v5
with:
node-version: "24.x"
cache: "npm"
- run: npm ci
- run: npm run build
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "24.x"
registry-url: "https://registry.npmjs.org"
- run: npm publish --provenance --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

All notable changes to this project will be documented in this file.

## [2.1.0] - 2026-02-24

### Added

- Table of Contents added to README

### Changed

- Migrated from Jest + ts-jest to Vitest — native ESM, native TypeScript, no transform workarounds
- Removed `jest`, `jest-config`, `ts-jest`, `@types/jest` dependencies
- `jest.config.js` replaced with `vitest.config.js`
- Test files converted from `.cjs` to `.ts`
- Updated `@lopatnov/get-internal-type` to 2.2.1
- Updated `@lopatnov/rollup-plugin-uglify` to 4.1.3

## [2.0.0] - 2026-02-14

### Added
Expand Down
Loading