From 56aacb7e7975c0c9a6553449c765a500c8e75869 Mon Sep 17 00:00:00 2001 From: devswithme Date: Fri, 7 Nov 2025 00:39:49 +0800 Subject: [PATCH] chore: fix ci.yml issue #1 --- .github/workflows/npm.yml | 12 ++++++++---- cli/package.json | 3 +++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 9e23dd3..61b7401 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -5,6 +5,9 @@ on: types: [closed] branches: - main + push: + branches: + - main jobs: release: @@ -16,20 +19,21 @@ jobs: steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/setup-node@v4 with: node-version: 20 - registry-url: "https://registry.npmjs.org/" + registry-url: https://registry.npmjs.org/ - name: Install dependencies run: npm ci - - name: Bump version (patch) and publish + - name: Bump version and publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | npm version patch -m "ci: release %s" - npm publish --access public - + npm publish git push origin main --follow-tags diff --git a/cli/package.json b/cli/package.json index 04a0648..9e90962 100644 --- a/cli/package.json +++ b/cli/package.json @@ -16,6 +16,9 @@ "bin": { "fydemy-ui": "dist/cli.js" }, + "publishConfig": { + "access": "public" + }, "type": "module", "files": [ "dist/",