diff --git a/.travis.yml b/.travis.yml index c3bd1341..73cc3d2c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ deploy: provider: npm email: ceberhardt@scottlogic.com api_key: - secure: Vc9fsS/InXhvF8b3OIK5iTCRRB4ajUP73E5ObLiFYskVTCb5tLbl8rdYElV/uE2LF3Dw3SE9OyAARFPtkbUcmJ3A6YibEx5eKlPjWJZ8P0Pe85ap9XjopZzHzqpu+8kvZIPIQKUyisrD6RCRQdudT2uZKg2jvyvRwjnNVlVye4M= + secure: "KTmVyw8YdArB5xWgNbkeZ9JD1jAKh/uMjWJdjjDfTBxKVarFfyP5+899C+qZJ8f7cAfiHZKwNE5nCjfU6uuFjYc7gMFr/ezm1KZc1DXM51V6B9TnIwLxNBr5ZYwcW7H725iYpQMwXX9rC/W4U8mahMKo8m7L0DQGUWEoYuGkKd8=" on: tags: true branch: master \ No newline at end of file diff --git a/dist/README.md b/dist/README.md new file mode 100644 index 00000000..520d2d67 --- /dev/null +++ b/dist/README.md @@ -0,0 +1,12 @@ +Releases can be found on [npm](https://www.npmjs.com/package/dss-layout). + +#Release Process + +```bash +# Ensure that the local codebase is up to date +git fetch upstream master && git checkout FETCH_HEAD + +npm version [ | major | minor | patch | premajor | preminor | prepatch | prerelease] +``` + +This will take care of getting the latest version of `upstream/master`, updating the package.json, committing, tagging and pushing back to `upstream/master`. Travis will then take care of building the packages and pushing to npm. diff --git a/package.json b/package.json index 83c47345..ed707677 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "Reimplementation of CSS layout using pure JavaScript", "main": "dist/css-layout.js", "scripts": { - "test": "grunt ci" + "test": "grunt ci", + "postversion": "git push --tags upstream HEAD:master" }, "repository": { "type": "git",