From 9ecdf2fb1959f36b73c01e81343b6f3929a91f8d Mon Sep 17 00:00:00 2001 From: Steven Chen Date: Tue, 29 Oct 2024 15:44:19 +0800 Subject: [PATCH] fix: not find release module --- .github/workflows/release-package.yml | 19 +++++-------------- package.json | 2 ++ 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index a64e8e5..e1b5d39 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -5,21 +5,7 @@ on: types: [created] jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 20 - - uses: pnpm/action-setup@v4 - with: - version: 9 - - run: pnpm i - - run: pnpm build - publish-gpr: - needs: build runs-on: ubuntu-latest permissions: packages: write @@ -31,6 +17,11 @@ jobs: node-version: 20 registry-url: https://npm.pkg.github.com/ scope: '@beeinventor' + - uses: pnpm/action-setup@v4 + with: + version: 9 + - run: pnpm i + - run: pnpm build - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/package.json b/package.json index c67f210..9581fe6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,8 @@ { "name": "@beeinventor/dasiot-react-component-lib", "version": "1.9.0", + "module": "lib/index.js", + "types": "lib/index.d.ts", "type": "module", "files": [ "lib",