Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Commit

Permalink
Build package before publishing in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop authored Sep 9, 2020
1 parent 72c249a commit 0d29958
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
echo "The Git tag extracted from GitHub Actions: $GIT_TAG_NAME"
npm version --allow-same-version=true --git-tag-version=false "$GIT_TAG_NAME"
- name: Build package
run: npm i && npm run build

- name: Publish the package
run: |
npm publish
run: npm publish
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"bin": {
"dj": "lib/index.js"
},
"files": ["lib/**/*"],
"files": [
"lib/**/*"
],
"dependencies": {
"@polkadot/api": "1.30.0-beta.0",
"@polkadot/keyring": "3.3.1",
Expand Down

0 comments on commit 0d29958

Please sign in to comment.