From 6d6671cbde231367897754a5e915ed323da10dd8 Mon Sep 17 00:00:00 2001 From: Dennis Coorn Date: Thu, 7 Nov 2019 11:49:02 +0100 Subject: [PATCH] GitHub workflow action added to automate publishing the package to the registry --- .github/workflows/npmpublish.yml | 21 +++++++++++++++++++++ package.json | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/npmpublish.yml diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml new file mode 100644 index 0000000..b1060c8 --- /dev/null +++ b/.github/workflows/npmpublish.yml @@ -0,0 +1,21 @@ +name: Publish package + +on: + release: + types: [created] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://npm.pkg.github.com/ + scope: '@leviy' + - run: | + npm --no-git-tag-version version ${{github.event.release.name}} + npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/package.json b/package.json index 8cfe75e..c0b9801 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@leviy/eslint-plugin-es5", - "version": "1.4.0", + "version": "0.0.0", "description": "ESLint plugin for ES5 users.", "keywords": [ "eslint",