Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish to npm

on:
workflow_dispatch:

permissions:
contents: read
id-token: write

jobs:
deploy:
name: Publish to npm
runs-on: ubuntu-latest
environment:
name: npm

steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Publish to npm
run: npm publish --provenance --access public
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,11 @@ use the following commands:

For convenience you can also run these commands as `make txpush` or `make txpull`.


### Releases

Releases are manually created by a maintainer. To create a release, a maintainer needs to:

1. Confirm that the main branch is in a valid state and that the CI is passing.
1. Update the version number in [package.json](./package.json), and push this change to the main branch (`gh-pages`)
1. Go to [this GitHub page](https://github.com/osmlab/editor-layer-index/actions/workflows/publish.yml), and then click <kbd>Run workflow</kbd>.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for info on how to contribute new sources

## Using this index

If you are using iD or Potlatch 2 you are already using this index! iD only updates imagery layers upon release, so recently added or modified layers may not yet appear in iD, [this may be improved in the future](https://github.com/openstreetmap/iD/issues/9730), but for now to check iD using the latest imagery layers you can view the preview site [https://ideditor.netlify.app](https://ideditor.netlify.app).
If you are using iD or Potlatch 2 you are already using this index!

For JOSM you can add `https://osmlab.github.io/editor-layer-index/imagery.xml` to the preference key `imagery.layers.sites` in advanced preferences. You probably want to remove the `https://josm.openstreetmap.de/maps` entry or you'll get the same layers listed twice.

Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
{
"name": "@openstreetmap/editor-layer-index",
"version": "0.0.0",
"version": "1.0.0",
"description": "available imagery for osm editors",
"main": "index.js",
"main": "imagery.geojson",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com/osmlab/editor-layer-index.git"
},
"homepage": "https://osmlab.github.io/editor-layer-index",
"keywords": [
"openstreetmap",
"editor",
"imagery"
],
"files": [
"imagery.geojson",
"imagery.xml",
"schema.json"
],
"author": "Ian Dees",
"license": "BSD"
}
Loading