From 78d28383754813d73b38dc707e48fe0909bef166 Mon Sep 17 00:00:00 2001 From: minchodang Date: Sun, 7 Sep 2025 14:10:03 +0900 Subject: [PATCH 1/5] chore: unnecessary file remove --- .changeset/kind-trees-help.md | 46 ----------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 .changeset/kind-trees-help.md diff --git a/.changeset/kind-trees-help.md b/.changeset/kind-trees-help.md deleted file mode 100644 index e92cabd..0000000 --- a/.changeset/kind-trees-help.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -'simple-remote-ssh': minor ---- - -# 🎉 Simple Remote SSH v0.1.0 - Initial Release - -## ✨ Key Features - -### SSH Host Management - -- **Add Host**: `simple-ssh add` - Interactive host information input -- **List Hosts**: `simple-ssh list` - View saved host list -- **Edit Host**: `simple-ssh edit ` - Modify host information -- **Remove Host**: `simple-ssh remove ` - Delete host - -### SSH Connection - -- **Interactive Connection**: `simple-ssh` - Select and connect to host -- **Direct Connection**: `simple-ssh connect ` - Connect directly to specific host -- **Connection Options**: Username and port override support - -### Authentication Methods - -- **SSH Key File**: Secure key-based authentication -- **Password**: Interactive password input on connection -- **Default SSH Settings**: Use system default SSH configuration - -### Additional Features - -- **Tag System**: Host categorization and management -- **Description Field**: Per-host notes -- **Colorful UI**: Intuitive user interface - -## 🚀 Installation & Usage - -```bash -# Global installation -npm install -g simple-remote-ssh - -# Usage -simple-ssh --help -``` - -## 💾 Configuration File - -Host information is securely stored in `~/.ssh-easy/config.json`. From a5eb42113e319032bcf3356e396aeee3c65fc059 Mon Sep 17 00:00:00 2001 From: minsuKang <90169703+minchodang@users.noreply.github.com> Date: Sun, 7 Sep 2025 14:19:56 +0900 Subject: [PATCH 2/5] fix: allow npm publish in CI environment (#9) - Modify prepublishOnly script to allow publishing in CI - Prevent local publishing while allowing GitHub Actions - Fix automated release workflow --- packages/cli/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index 8bf83d5..c566a5e 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -25,7 +25,7 @@ "version:patch": "npm version patch", "version:minor": "npm version minor", "version:major": "npm version major", - "prepublishOnly": "echo '❌ Use GitHub Actions for publishing! Run: git push origin main' && exit 1" + "prepublishOnly": "node -e \"if (!process.env.CI) { console.log('❌ Use GitHub Actions for publishing! Run: git push origin main'); process.exit(1); }\"" }, "keywords": [ "ssh", From b1fb7e01f245d7ee011ccc21f72754cadc44f7ff Mon Sep 17 00:00:00 2001 From: minchodang Date: Sun, 7 Sep 2025 14:32:50 +0900 Subject: [PATCH 3/5] chore: release cancel-in-progress add --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b85b867..62bc6fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,9 @@ on: branches: - main -concurrency: ${{ github.workflow }}-${{ github.ref }} +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: false permissions: contents: write From d64448690ca342b94cc0c726d76576609a1a077c Mon Sep 17 00:00:00 2001 From: minchodang Date: Sun, 7 Sep 2025 14:35:52 +0900 Subject: [PATCH 4/5] fix: configure NPM authentication for automated publishing - Add .npmrc files with NPM_TOKEN authentication - Add explicit NPM authentication step in GitHub Actions - Ensure proper npm registry authentication in CI environment - Fix ENEEDAUTH error during automated publishing --- .github/workflows/release.yml | 3 +++ .npmrc | 1 + packages/cli/.npmrc | 1 + 3 files changed, 5 insertions(+) create mode 100644 packages/cli/.npmrc diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 62bc6fd..08d5805 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,6 +51,9 @@ jobs: - name: Build packages run: pnpm build + - name: Setup NPM authentication + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc + - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@v1 diff --git a/.npmrc b/.npmrc index e69de29..ae64359 100644 --- a/.npmrc +++ b/.npmrc @@ -0,0 +1 @@ +//registry.npmjs.org/:_authToken=${NPM_TOKEN} diff --git a/packages/cli/.npmrc b/packages/cli/.npmrc new file mode 100644 index 0000000..ae64359 --- /dev/null +++ b/packages/cli/.npmrc @@ -0,0 +1 @@ +//registry.npmjs.org/:_authToken=${NPM_TOKEN} From 3f57ed0451f53e38d78e2a3fc06fdc2ef888a8c4 Mon Sep 17 00:00:00 2001 From: minchodang Date: Sun, 7 Sep 2025 14:41:46 +0900 Subject: [PATCH 5/5] fix: enhance NPM authentication debugging - Add comprehensive NPM_TOKEN validation - Add registry-url to Node.js setup - Add NODE_AUTH_TOKEN environment variable - Add npm whoami test for authentication verification - Improve debugging output for CI troubleshooting --- .github/workflows/release.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08d5805..428f115 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 18 + registry-url: 'https://registry.npmjs.org' - name: Setup pnpm uses: pnpm/action-setup@v2 @@ -52,7 +53,19 @@ jobs: run: pnpm build - name: Setup NPM authentication - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc + run: | + echo "Checking NPM_TOKEN..." + if [ -z "${{ secrets.NPM_TOKEN }}" ]; then + echo "❌ NPM_TOKEN is empty or not set!" + exit 1 + else + echo "✅ NPM_TOKEN is set" + fi + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc + echo "Created ~/.npmrc file" + ls -la ~/.npmrc + echo "Testing npm authentication..." + npm whoami || echo "npm whoami failed" - name: Create Release Pull Request or Publish to npm id: changesets @@ -63,9 +76,11 @@ jobs: title: 'chore: release packages' commit: 'chore: release packages' createGithubReleases: true + setupGitUser: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Create GitHub Release if: steps.changesets.outputs.published == 'true'