Skip to content

Commit 8d2dc94

Browse files
committed
add npm package for sharing assets
1 parent 5c4d60e commit 8d2dc94

File tree

4 files changed

+35
-2
lines changed

4 files changed

+35
-2
lines changed

.github/workflows/npm-publish.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
name: npm publish
3+
4+
on:
5+
release:
6+
types: [created]
7+
8+
jobs:
9+
publish-npm:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: 16
17+
registry-url: https://registry.npmjs.org/
18+
19+
- run: npm publish
20+
env:
21+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.npmignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
.github/
3+
book/
4+
js-out/
5+
docs/
6+
calcit.cirru
7+
compact.cirru
8+
yarn.lock
9+
.*.cirru
10+
index.html
11+
main.mjs

assets/main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
@import url("./github-gist.css");
3-
@import url("../node_modules/github-markdown-css/github-markdown.css");
4-
@import url("../node_modules/cirru-color/assets/cirru.css");
3+
@import url("github-markdown-css/github-markdown.css");
4+
@import url("cirru-color/assets/cirru.css");
55

66
body {
77
margin: 0;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"version": "0.0.5",
3+
"name": "@calcit/docs-workflow",
34
"dependencies": {
45
"@calcit/procs": "^0.5.28"
56
},

0 commit comments

Comments
 (0)