Skip to content

Commit

Permalink
add npm package for sharing assets
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Apr 3, 2022
1 parent 5c4d60e commit 8d2dc94
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

name: npm publish

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
11 changes: 11 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

.github/
book/
js-out/
docs/
calcit.cirru
compact.cirru
yarn.lock
.*.cirru
index.html
main.mjs
4 changes: 2 additions & 2 deletions assets/main.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

@import url("./github-gist.css");
@import url("../node_modules/github-markdown-css/github-markdown.css");
@import url("../node_modules/cirru-color/assets/cirru.css");
@import url("github-markdown-css/github-markdown.css");
@import url("cirru-color/assets/cirru.css");

body {
margin: 0;
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": "0.0.5",
"name": "@calcit/docs-workflow",
"dependencies": {
"@calcit/procs": "^0.5.28"
},
Expand Down

0 comments on commit 8d2dc94

Please sign in to comment.