Skip to content

Commit e53ec08

Browse files
authored
feat: add npm publishing (#412)
Closes #411
1 parent 5c19d0e commit e53ec08

2 files changed

Lines changed: 41 additions & 6 deletions

File tree

.github/workflows/release.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish to NPM
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
id-token: write
10+
contents: read
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
environment: release
16+
steps:
17+
- uses: actions/checkout@v6
18+
- uses: actions/setup-node@v6
19+
with:
20+
node-version: 24
21+
registry-url: https://registry.npmjs.org
22+
cache: yarn
23+
- run: yarn install
24+
- run: yarn build
25+
- run: yarn test
26+
- name: Read version and publish
27+
run: npm publish --access public

package.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
2-
"name": "stac-map",
2+
"name": "@developmentseed/stac-map",
33
"description": "A map-first single-page STAC search and visualization tool with stac-geoparquet support",
4-
"author": {
5-
"name": "Pete Gadomski",
6-
"email": "pete.gadomski@gmail.com"
7-
},
4+
"author": "Pete Gadomski <pete.gadomski@gmail.com>",
85
"contributors": [
96
{
107
"name": "Indraneel Purohit",
@@ -100,5 +97,16 @@
10097
"vitest": "^4.1.5",
10198
"vitest-browser-react": "^2.2.0"
10299
},
103-
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
100+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
101+
"main": "eslint.config.js",
102+
"directories": {
103+
"doc": "docs",
104+
"test": "tests"
105+
},
106+
"keywords": [
107+
"stac",
108+
"geospatial",
109+
"raster",
110+
"map"
111+
]
104112
}

0 commit comments

Comments
 (0)