Skip to content

Commit

Permalink
fix npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Mithreum committed Jan 24, 2024
1 parent 99dee55 commit 5d871c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:

- name: prepare package
run: |
mkdir out
mv package.json out
cp -r src/* out
mv Readme.md out
mv .gitignore out
mkdir emmet-sdk-v2
mv package.json emmet-sdk-v2
cp -r src/* emmet-sdk-v2
mv Readme.md emmet-sdk-v2
mv .gitignore emmet-sdk-v2
- name: List Contents of out folder
run: ls -R out
Expand All @@ -50,6 +50,7 @@ jobs:

- name: Publish to NPM
run: |
npm publish out
cd emmet-sdk-v2/
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.2",
"description": "An SDK for Emmet.Finance Bridge",
"main": "index.js",
"types": "./types/index.d.ts",
"types": "./emmet-sdk-v2/index.d.ts",
"scripts": {
"build": "tsc"
},
Expand All @@ -23,5 +23,8 @@
"devDependencies": {
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}

0 comments on commit 5d871c9

Please sign in to comment.