From a8a872502526eaab1e92e5116d48fb36e93b02b9 Mon Sep 17 00:00:00 2001 From: MULHAM Date: Tue, 15 Sep 2026 05:17:38 +0700 Subject: [PATCH 1/2] ci: restore npm workflow and OIDC publishing --- .github/workflows/npm-publish.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 5d208c3..2c76aef 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -24,14 +24,10 @@ jobs: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - - name: Setup Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 + - name: Setup Bun + uses: oven-sh/setup-bun@v2 with: - node-version: 24 - registry-url: https://registry.npmjs.org - cache: npm - env: - FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true + bun-version: 1.3.14 - name: Install dependencies run: npm ci @@ -49,12 +45,12 @@ jobs: run: npm run release:check - name: Smoke test CLI help - run: node bin/pkgmap.js --help + run: bun bin/pkgmap.js --help - name: Publish to npm (skip if already published) shell: bash run: | - PACKAGE_VERSION=$(node -p "require('./package.json').version") + PACKAGE_VERSION=$(bun -e "console.log(JSON.parse(require('fs').readFileSync('package.json', 'utf8')).version)") PUBLISHED=$(npm view @mulham28/pkgmap@$PACKAGE_VERSION version 2>/dev/null || true) if [ "$PUBLISHED" = "$PACKAGE_VERSION" ]; then From e42afb0bb18713c958a4167dd0b5d7ba2e53e6ec Mon Sep 17 00:00:00 2001 From: MULHAM Date: Tue, 15 Sep 2026 05:17:58 +0700 Subject: [PATCH 2/2] ci: run checks with npm on Node.js --- .github/workflows/ci.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc8526b..f240d2a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,25 +24,33 @@ jobs: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + - name: Setup Node.js + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 + with: + node-version: 24 + cache: npm + env: + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true + - name: Setup Bun uses: oven-sh/setup-bun@v2 with: bun-version: 1.3.14 - name: Install dependencies - run: bun install --frozen-lockfile + run: npm ci - name: Run ESLint - run: bun run lint + run: npm run lint - name: Run Prettier check - run: bun run format:check + run: npm run format:check - name: Run unit tests - run: bun test + run: npm test - name: Verify version sync - run: bun run release:check + run: npm run release:check - name: Smoke test CLI help run: bun bin/pkgmap.js --help