chore: Bump version to 0.0.3 and update npm publish workflow to include testing steps

This commit is contained in:
Huakun Shen 2025-01-18 04:58:35 -05:00
parent 4d1ca12fb2
commit ed9a310af5
No known key found for this signature in database
3 changed files with 11 additions and 16 deletions

View File

@ -11,19 +11,7 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Test
run: |
bun install
bun run build
bun test --coverage
publish-npm: publish-npm:
needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: read contents: read
@ -34,6 +22,11 @@ jobs:
with: with:
node-version: 22 node-version: 22
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- uses: oven-sh/setup-bun@v2
- name: Test
run: |
bun install
bun run build
- run: | - run: |
PACKAGE_NAME=$(jq -r '.name' package.json) PACKAGE_NAME=$(jq -r '.name' package.json)
PACKAGE_VERSION=$(jq -r '.version' package.json) PACKAGE_VERSION=$(jq -r '.version' package.json)

View File

@ -1,6 +1,6 @@
{ {
"name": "@kunkun/ext-ossinsight", "name": "@kunkun/ext-ossinsight",
"version": "0.0.2", "version": "0.0.3",
"license": "MIT", "license": "MIT",
"exports": "./mod.ts", "exports": "./mod.ts",
"publish": { "publish": {

View File

@ -2,7 +2,7 @@
"license": "MIT", "license": "MIT",
"$schema": "https://schema.kunkun.sh", "$schema": "https://schema.kunkun.sh",
"name": "kunkun-ext-ossinsight", "name": "kunkun-ext-ossinsight",
"version": "0.0.2", "version": "0.0.3",
"type": "module", "type": "module",
"repository": { "repository": {
"type": "git", "type": "git",
@ -57,8 +57,10 @@
"typescript": "^5.7.3" "typescript": "^5.7.3"
}, },
"files": [ "files": [
"demo-images",
"dist", "dist",
".gitignore" "demo-images",
"README.md",
"package.json",
"mod.ts"
] ]
} }