From 23e9f54b57e0c25f6e6a5c646c3638885dd17045 Mon Sep 17 00:00:00 2001
From: Matei Adriel <rafaeladriel11@gmail.com>
Date: Mon, 25 Nov 2019 18:11:59 +0200
Subject: [PATCH] typescript(loopover): ci: Added a basic github action

Signed-off-by: prescientmoon <git@moonythm.dev>
---
 .../loopover/.github/workflows/npmpublish.yml | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 typescript/loopover/.github/workflows/npmpublish.yml

diff --git a/typescript/loopover/.github/workflows/npmpublish.yml b/typescript/loopover/.github/workflows/npmpublish.yml
new file mode 100644
index 0000000..2cac15d
--- /dev/null
+++ b/typescript/loopover/.github/workflows/npmpublish.yml
@@ -0,0 +1,21 @@
+name: Node.js Package
+
+on:
+  release:
+    types: [published]
+
+jobs:
+  publish-npm:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v1
+      - uses: actions/setup-node@v1
+        with:
+          node-version: 12
+          registry-url: https://registry.npmjs.org/
+      - run: npm i -g pnpm
+      - run: pnpm install
+      - run: pnpm run build
+      - run: npm publish --access public
+        env:
+          NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}