Skip to content

Commit

Permalink
fix: Used pnpm build command in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
SpiffGreen committed Jul 25, 2023
1 parent 407340c commit bae2847
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-dogs-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"flincap-sdk": patch
---

Used pnpm build command in github action
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI
on:
push:
pull_request:
branches:
- "main"

Expand Down Expand Up @@ -36,6 +36,7 @@ jobs:
- name: Publish to npm
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
pnpm run build
npm publish --ignore-scripts --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsup ./src/index.ts --format cjs,esm --dts",
"prepublishOnly": "npm run build",
"lint": "tsc",
"change": "changeset"
},
Expand Down

0 comments on commit bae2847

Please sign in to comment.