Skip to content

Commit 84575a9

Browse files
committed
add publish workflow. update package json
1 parent 94bf22e commit 84575a9

File tree

4 files changed

+45
-400
lines changed

4 files changed

+45
-400
lines changed

.github/workflows/publish.yml

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

LICENSE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
2+
3+
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

0 commit comments

Comments
 (0)