Skip to content

Commit

Permalink
Merge pull request #29 from Fliplet/chore/tag-npm-publish
Browse files Browse the repository at this point in the history
Chore/tag npm publish
  • Loading branch information
seromenho authored Jul 17, 2017
2 parents a928f15 + a4ad7bf commit 0b370dc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ You can now use the command `fliplet` from the command line. Just type `fliplet`

---

Please refer to our [documentation](http://developers.fliplet.com) for all details about creating components, themes and menus on Fliplet via the `fliplet-cli`.
Please refer to our [documentation](http://developers.fliplet.com) for all details about creating components, themes and menus on Fliplet via the `fliplet-cli`.

# Publish to npm

Creata a release tag from master. Eg: v3.7.5
9 changes: 8 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
dependencies:
pre:
- npm link
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc

test:
override:
- fliplet env staging
- fliplet login -u $TEST_USER -p $TEST_PASSWORD
- fliplet organization $TEST_ORGANIZATION
- fliplet create-widget awesome-widget
- cd awesome-widget && fliplet test
- cd awesome-widget && fliplet test

deployment:
npm:
tag: /v[0-9]+(\.[0-9]+)*/
commands:
- npm publish
1 change: 1 addition & 0 deletions fliplet-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ function login(email, password) {
})
.catch(function (error) {
console.log(error);
process.exit(1);
});
}
3 changes: 3 additions & 0 deletions fliplet-organization.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ organizations.getOrganizationsList()
}

console.log(`You do not belong to that organization. List organizations you belong with: fliplet list-organizations`);
process.exit(1);
})
.catch(function (error) {
console.log(error);
process.exit(1);
});
})
.catch(function onGetOrganizationsError(error) {
log(error);
process.exit(1);
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fliplet-cli",
"version": "3.7.4",
"version": "3.7.5",
"description": "Command line utility for creating and running components, themes and menus to be used on the Fliplet platform.",
"main": "fliplet.js",
"scripts": {
Expand Down

0 comments on commit 0b370dc

Please sign in to comment.