From 3e79f6cadcc3760edc989148e5df04eea90ba252 Mon Sep 17 00:00:00 2001 From: Wenderson Pires Date: Fri, 11 Oct 2024 11:42:27 -0300 Subject: [PATCH] update build process and publish.yml --- .github/workflows/publish.yml | 9 ++++++++- package.json | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 938a2e3..0686c35 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,6 +13,13 @@ jobs: with: node-version: 18 registry-url: https://registry.npmjs.org/ - - run: npm publish --access public + # Install Yarn + - run: npm install -g yarn + # Install dependencies using Yarn + - run: yarn install + # Run build script + - run: yarn build + # Publish the package to NPM + - run: yarn publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} \ No newline at end of file diff --git a/package.json b/package.json index 93a36a1..77b09fc 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ ], "scripts": { "build": "rm -rf dist; tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json", - "prepack": "npm install; npm run build", "test": "jest" }, "keywords": [