From 0c48d252d2ddd12fc00839a7d203c299e5265926 Mon Sep 17 00:00:00 2001
From: Paul
Date: Tue, 18 Jan 2022 11:00:41 +0200
Subject: [PATCH] chore: add npm publish workflow
---
.github/workflows/npm-publish.yml | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 .github/workflows/npm-publish.yml
diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml
new file mode 100644
index 0000000..80cf2df
--- /dev/null
+++ b/.github/workflows/npm-publish.yml
@@ -0,0 +1,19 @@
+name: Publish to NPM
+
+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 ci
+ - run: npm publish
+ env:
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}