From be4b68c3d85a04251a9cdcbf1e5a3639b9c53144 Mon Sep 17 00:00:00 2001 From: Henk Verlinde Date: Thu, 18 Mar 2021 09:56:39 +0100 Subject: [PATCH] feat: add npm-package workflow --- .github/workflows/npm-package.yml | 17 +++++++++++++++++ package.json | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/npm-package.yml diff --git a/.github/workflows/npm-package.yml b/.github/workflows/npm-package.yml new file mode 100644 index 0000000..547b358 --- /dev/null +++ b/.github/workflows/npm-package.yml @@ -0,0 +1,17 @@ +name: Npm Package +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14.x' + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index 02f7c89..71f8330 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "doks", + "name": "@hyas/doks", "version": "0.1.6", "private": true, "hugo-bin": {