From baffdbe62d620dcafab9f735ff37f3139e5f85f3 Mon Sep 17 00:00:00 2001 From: Dennis Coorn Date: Thu, 7 Nov 2019 12:05:52 +0100 Subject: [PATCH] GitHub workflow action added to automate publishing the package to the registry --- .github/workflows/npmpublish.yml | 22 +++++++++++++++++++++ packages/eslint-config-default/package.json | 2 +- 2 files changed, 23 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..9b0ab97 --- /dev/null +++ b/.github/workflows/npmpublish.yml @@ -0,0 +1,22 @@ +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: | + cd packages/eslint-config-default/ + npm --no-git-tag-version version ${{github.event.release.name}} + npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/packages/eslint-config-default/package.json b/packages/eslint-config-default/package.json index fc97099..242bccc 100644 --- a/packages/eslint-config-default/package.json +++ b/packages/eslint-config-default/package.json @@ -1,6 +1,6 @@ { "name": "@leviy/eslint-config-default", - "version": "2.0.1", + "version": "0.0.0", "repository": { "type": "git", "url": "git+ssh://git@github.com:leviy/javascript-coding-standard.git"