From 5346534c1a3e49f070497bd8c87e3f7edd62d09c Mon Sep 17 00:00:00 2001 From: Thomas Cort Date: Mon, 11 Jan 2021 07:01:00 -0500 Subject: [PATCH] release.yml: Create a GH action to publish on NPM repos #153 --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cc75d3e..4a517c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,18 @@ on: types: created jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '10.x' + registry-url: 'https://registry.npmjs.org' + - run: npm install + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} docker-build-and-publish: name: "Docker: Build & Publish" runs-on: ubuntu-latest