diff --git a/.github/workflows/npm-publish.yaml b/.github/workflows/npm-publish.yaml new file mode 100644 index 0000000..f349a82 --- /dev/null +++ b/.github/workflows/npm-publish.yaml @@ -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}} diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..2891c72 --- /dev/null +++ b/.npmignore @@ -0,0 +1,11 @@ + +.github/ +book/ +js-out/ +docs/ +calcit.cirru +compact.cirru +yarn.lock +.*.cirru +index.html +main.mjs diff --git a/assets/main.css b/assets/main.css index b78e04c..a05f804 100644 --- a/assets/main.css +++ b/assets/main.css @@ -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; diff --git a/package.json b/package.json index 44f4941..888ce7d 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "version": "0.0.5", + "name": "@calcit/docs-workflow", "dependencies": { "@calcit/procs": "^0.5.28" },