From 0fb69d6b22410a866e1efb904e82df4556fbe45d Mon Sep 17 00:00:00 2001 From: Dirk-Jan Rutten Date: Sun, 13 May 2018 16:26:10 +0200 Subject: [PATCH] Deploy using travis --- .travis.yml | 18 +++++++++--------- CONTRIBUTING.md | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+), 9 deletions(-) create mode 100644 CONTRIBUTING.md diff --git a/.travis.yml b/.travis.yml index 1605d51..e7e734b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,12 +8,12 @@ node_js: script: - npm run ci -# deploy: -# provider: npm -# skip_cleanup: true -# email: dirkjanrutten@gmail.com -# api_key: -# secure: b/xf5WxoNhvVEUCIw7I3iqurPzR/CSgereQS0sFQV5aWYTWLQMi+YtUptOuHg/Yau0pYhg77EaOJfwUPOlZk/HgjIkV094hKqq2HDaa9/Foqejdrz/1F9lWy9zNLoNIeZ9CnI5h460wRNj08Rz6ex4xUz0wm9dnDF85xl/wDoQbLmpKUDXQUeWK77uvD/sijXrK/mtmCCQD8L466JGiBC+9RX+IZk2SqEr2vNcnpk6pjHYvkzjDE8B9UIu9qK0QuWg3RMzc1ABvZvFhC9AyW6iMoliYI44VN8coXM8Gtpo6BLfyh2wdb/mbWGYnPb030qu0nYZJ89jwTrd6VTqwAM6oGaNvT0964eNnqpipE1Gx8YcHXLAdTWC+yB5zSthZunG5Hz5WsZAIHC9UUoj33DSbiQAf36SokfLPNZ/Uj1hnQwuGozCRywWA18K/r7+/FlB+f0Q/e72rQDA/9ocdDghwxYkxgaqtKaWnYDVAGuIliRWw+cikLbQDxbcfY7MTg3MUcmdh3pOrWNrwPEpn6H5O9Kci6mpVwx92eZJd/kXBLQlGI5McI+q1vws+l01v/zw+cUs5GItLJavNK/4U0G7EZYMi9b6xzdIaykct0r7Y0Wnpm2NQrs0DN+3WQxUji/HaWNR7z+/Pv1pdKYpdpOuB1RLJXCd2Olddxj+/0p+4= -# on: -# tags: true -# branch: master \ No newline at end of file +deploy: + provider: npm + skip_cleanup: true + email: dirkjanrutten@gmail.com + api_key: + secure: b/xf5WxoNhvVEUCIw7I3iqurPzR/CSgereQS0sFQV5aWYTWLQMi+YtUptOuHg/Yau0pYhg77EaOJfwUPOlZk/HgjIkV094hKqq2HDaa9/Foqejdrz/1F9lWy9zNLoNIeZ9CnI5h460wRNj08Rz6ex4xUz0wm9dnDF85xl/wDoQbLmpKUDXQUeWK77uvD/sijXrK/mtmCCQD8L466JGiBC+9RX+IZk2SqEr2vNcnpk6pjHYvkzjDE8B9UIu9qK0QuWg3RMzc1ABvZvFhC9AyW6iMoliYI44VN8coXM8Gtpo6BLfyh2wdb/mbWGYnPb030qu0nYZJ89jwTrd6VTqwAM6oGaNvT0964eNnqpipE1Gx8YcHXLAdTWC+yB5zSthZunG5Hz5WsZAIHC9UUoj33DSbiQAf36SokfLPNZ/Uj1hnQwuGozCRywWA18K/r7+/FlB+f0Q/e72rQDA/9ocdDghwxYkxgaqtKaWnYDVAGuIliRWw+cikLbQDxbcfY7MTg3MUcmdh3pOrWNrwPEpn6H5O9Kci6mpVwx92eZJd/kXBLQlGI5McI+q1vws+l01v/zw+cUs5GItLJavNK/4U0G7EZYMi9b6xzdIaykct0r7Y0Wnpm2NQrs0DN+3WQxUji/HaWNR7z+/Pv1pdKYpdpOuB1RLJXCd2Olddxj+/0p+4= + on: + tags: true + branch: master \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..8cc816a --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,18 @@ +## Release on NPM + +_Only core contributors may release to NPM._ + +To release a new version on NPM, first ensure all tests pass with `npm test`, +then use `npm version patch|minor|major` in order to increment the version in +package.json and tag and commit a release. Then `git push && git push --tags` +this change so Travis CI can deploy to NPM. _Do not run `npm publish` directly._ +Once published, add [release notes](https://github.com/excitement-engineer/graphql-iso-date/tags). +Use [semver](http://semver.org/) to determine which version part to increment. + +Example for a patch release: + +```sh +npm test +npm version patch +git push --follow-tags +```