chore: add workflow to publish on npm

This commit is contained in:
Basile Bruneau
2022-02-13 17:57:34 +01:00
parent 411e58185e
commit 65e3d4c028
2 changed files with 23 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
name: Publish to npm
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build
- run: npm test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "dotted-map",
"version": "2.2.2",
"version": "2.2.3",
"description": "Create a SVG map filled with dots for the world or countries",
"main": "./index.js",
"exports": {