Add instructions for ol package

Andreas Hocevar
2017-02-13 13:13:31 +00:00
parent d4542161b1
commit 57bf00487d
+24
@@ -46,6 +46,22 @@ E.g.
git add package.json git add package.json
git commit -m 'Update package version to 3.1.0' git commit -m 'Update package version to 3.1.0'
### Update `package.json` for the ol package
Update the beta version number in `package/package.json` to reflect the target release. Create a commit for this change as well.
E.g.
```json
{
"name": "ol",
"version": "3.1.0-beta.1"
}
```
git add package/package.json
git commit -m 'Update ol package version to 3.1.0-beta.1'
### Merge the release branch ### Merge the release branch
Create a pull request and merge the release branch. This allows for any final review of upgrade notes or other parts of the changelog. Create a pull request and merge the release branch. This allows for any final review of upgrade notes or other parts of the changelog.
@@ -66,6 +82,14 @@ Run the `publish.sh` task with the version number as specified in the `package.j
./tasks/publish.sh 3.1.0 ./tasks/publish.sh 3.1.0
### Publish the ol package to npm
Run the make target for creating the package, and publish the package to npm. This implies you have an npm user account which has the correct permissions.
make package
cd build/package
npm publish
### Update website ### Update website
You need a local clone of the [openlayers.github.io](https://github.com/openlayers/openlayers.github.io) repo, with the `build` branch checked out. You need a local clone of the [openlayers.github.io](https://github.com/openlayers/openlayers.github.io) repo, with the `build` branch checked out.