From afec97d5adaf95202685027bdb5932a5ab775afe Mon Sep 17 00:00:00 2001 From: Devlin Pajaron Date: Sun, 26 Jul 2026 23:26:08 +0800 Subject: [PATCH] Fix publish --- .github/workflows/publish-package.yml | 2 +- docs-md/changelog.md | 11 ----------- package.json | 2 +- src/package.test.ts | 2 +- 4 files changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index c7305bc..3a2fb33 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -77,4 +77,4 @@ jobs: path: package-artifact - name: Publish - run: npm publish package-artifact/*.tgz --access public + run: npm publish ./package-artifact/*.tgz --access public diff --git a/docs-md/changelog.md b/docs-md/changelog.md index 73dc9b8..032f28c 100644 --- a/docs-md/changelog.md +++ b/docs-md/changelog.md @@ -6,17 +6,6 @@ id: changelog # Changelog -##### 4.4.1 - -- Add baseline coverage for documentation/index generation and dependency - security remediation -- Keep the dev-only `brace-expansion` advisory open until its unpublished - `5.0.8` fix is available; production dependencies audit clean -- Remove obsolete ESLint suppressions and unused packages -- Configure npm Trusted Publishing with OIDC and strict release tag validation -- Update TypeScript to 7.0.1-rc, align testing/builds with Vitest and esbuild, - and preserve bundled declaration outputs - ##### 4.4.0 - **NEW:** `JSON -> safeJsonParse` - parse JSON without throwing and return a diff --git a/package.json b/package.json index 5a23e72..b724366 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "common-utils-pkg", - "version": "4.4.1", + "version": "4.4.0", "description": "A package of commonly used JavaScript utilities.", "keywords": ["utilities", "npm", "module", "javascript", "es6", "functions"], "homepage": "https://common-utils-pkg.js.org/", diff --git a/src/package.test.ts b/src/package.test.ts index 51404a7..92beaf2 100644 --- a/src/package.test.ts +++ b/src/package.test.ts @@ -43,7 +43,7 @@ describe('package publishing configuration', () => { expect(workflow).toContain('actions/upload-artifact@v7'); expect(workflow).toContain('actions/download-artifact@v8'); expect(workflow).toContain( - 'npm publish package-artifact/*.tgz --access public' + 'npm publish ./package-artifact/*.tgz --access public' ); expect(workflow).not.toMatch( /NPM_TOKEN|NODE_AUTH_TOKEN|npm\.pkg\.github\.com/