Skip to content

Commit

Permalink
update build process and publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdas committed Oct 11, 2024
1 parent 2882f35 commit 3e79f6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 3e79f6c

Please sign in to comment.