From 2f82fe3a968c9b3b2f82dd91eb32b85c8a1ce5d8 Mon Sep 17 00:00:00 2001 From: ienaga Date: Sun, 23 Mar 2025 16:45:55 +0900 Subject: [PATCH] =?UTF-8?q?npm=20publish=E3=81=AE=E8=A8=AD=E5=AE=9A?= =?UTF-8?q?=E3=82=92=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 4 ++-- package.json | 6 +++--- scripts/{release.js => create.js} | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename scripts/{release.js => create.js} (100%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e7bbb7d..df25717 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,9 +17,9 @@ jobs: with: node-version: "22.x" registry-url: "https://registry.npmjs.org" - - run: npm run release + - run: npm run create:package - run: npm install - - run: npm run publish + - run: npm run release - run: cd ~/work/framework/framework/dist && npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index fa339ed..8722b03 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@next2d/framework", "description": "Next2D Framework is designed according to the principles of clean architecture, domain-driven development, test-driven development, and MVVM, with an emphasis on flexibility, scalability, and maintainability, and a design methodology that keeps each layer loosely coupled.", - "version": "3.0.1", + "version": "3.0.2", "homepage": "https://next2d.app", "bugs": "https://github.com/Next2D/Framework/issues/new", "author": "Toshiyuki Ienaga (https://github.com/ienaga/)", @@ -22,8 +22,8 @@ "scripts": { "lint": "eslint src/**/*.ts", "clean": "node ./scripts/clean.js", - "release": "node ./scripts/release.js", - "publish": "node ./scripts/version.js && tsc && node ./scripts/publish.js", + "create:package": "node ./scripts/create.js", + "release": "node ./scripts/version.js && tsc && node ./scripts/publish.js", "test": "vitest" }, "repository": { diff --git a/scripts/release.js b/scripts/create.js similarity index 100% rename from scripts/release.js rename to scripts/create.js