Skip to content

Commit

Permalink
Update compile script
Browse files Browse the repository at this point in the history
  • Loading branch information
arhtudormorar committed May 1, 2024
1 parent e26dd86 commit 52835bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: yarn test

- name: Build project
run: yarn build
run: yarn compile

- name: Get package info
id: package
Expand All @@ -43,10 +43,10 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.package.outputs.is-prerelease == 'true'}}
run: echo ${{ steps.package.outputs.is-prerelease}} && cd dist && npm publish --tag next
run: echo ${{ steps.package.outputs.is-prerelease}} && npm publish --tag next

- name: Publish to npmjs
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.package.outputs.is-prerelease == 'false' }}
run: cd dist && npm publish
run: npm publish
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"url": "git+https://github.com/multiversx/mx-sdk-dapp-core.git"
},
"scripts": {
"build": "tsc",
"compile": "tsc",
"test": "jest",
"compile-next": "tsc --p tsconfig.next.json"
},
Expand Down

0 comments on commit 52835bd

Please sign in to comment.