From 2d9e42f1feffbbf868cae2267e086c34a6465614 Mon Sep 17 00:00:00 2001 From: Airton Zanon Date: Fri, 17 Jan 2020 13:48:37 +0100 Subject: [PATCH 1/2] Publish NPM version automatically When we create a PR changing the version on package.json file and creating the commit with "Release" on the commit title, it will publish the new version on NPM automatically. Signed-off-by: Airton Zanon --- .github/workflows/npm-publish.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..8185e7b --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,26 @@ +name: npm-publish +on: + push: + branches: + - master +jobs: + npm-publish: + name: npm-publish + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@master + - name: Set up Node.js + uses: actions/setup-node@master + with: + node-version: 10.0.0 + - name: Publish if version has been updated + uses: pascalgn/npm-publish-action@51fdb4531e99aac1873764ef7271af448dc42ab4 + with: + tag_name: "v%s" + tag_message: "v%s" + commit_pattern: "^Release (\\S+)" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + From d1d3d9acb938f08ea2c383fce35f912b3f9d0032 Mon Sep 17 00:00:00 2001 From: Airton Zanon Date: Fri, 17 Jan 2020 13:55:13 +0100 Subject: [PATCH 2/2] Release 1.1.2 Dependencies update Signed-off-by: Airton Zanon --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3a179c5..09efbc4 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "code", "style" ], - "version": "1.1.1", + "version": "1.1.2", "preferGlobal": true, "repository": { "type": "git",