Skip to content

Commit e6b0b70

Browse files
authored
publish from CI (#77)
1 parent 8f3762b commit e6b0b70

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

.github/workflows/release.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish Package to NPM
2+
3+
# Only run on new tags starting with `v`
4+
on:
5+
push:
6+
tags:
7+
- "v*"
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
# Setup .npmrc file to publish to npm
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: '20.8.0'
19+
registry-url: 'https://registry.npmjs.org'
20+
21+
- run: npm ci
22+
- run: npm publish
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"examples/*"
55
],
66
"name": "@geoarrow/deck.gl-layers",
7-
"version": "0.3.0-beta.6",
7+
"version": "0.3.0-beta.7",
88
"type": "module",
99
"description": "",
1010
"source": "src/index.ts",
@@ -27,7 +27,8 @@
2727
"build:rollup": "rollup -c rollup.config.js",
2828
"clean": "rimraf dist",
2929
"watch": "tsc --watch",
30-
"test": "vitest run"
30+
"test": "vitest run",
31+
"prepublishOnly": "npm run clean && npm run build"
3132
},
3233
"files": [
3334
"dist/",

0 commit comments

Comments
 (0)