From 4a08ab7d7d93aa079863f26394a364e42e17c942 Mon Sep 17 00:00:00 2001 From: Sahil Shubham Date: Mon, 6 Sep 2021 15:20:24 +0530 Subject: [PATCH 1/3] Added action to publish package; --- .github/workflows/release.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..898efe40 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +name: Publish package on new release + +on: + release: + types: [published] + +jobs: + main: + 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: yarn install + - run: yarn publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} From d417cce41153a34b1c24c4552b46247372fd039e Mon Sep 17 00:00:00 2001 From: Sahil Shubham Date: Mon, 6 Sep 2021 15:25:49 +0530 Subject: [PATCH 2/3] Changed action to on push; changed version in package.json for test release; --- .github/workflows/release.yml | 3 +-- package.json | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 898efe40..8f655fcf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,7 @@ name: Publish package on new release on: - release: - types: [published] + push jobs: main: diff --git a/package.json b/package.json index e26206e7..499f0f62 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@felvin-search/apps", "license": "MIT", - "version": "0.2.0", + "version": "0.2.1", "private": false, "publishConfig": { "access": "public" @@ -62,4 +62,4 @@ "files": [ "dist" ] -} +} \ No newline at end of file From 173862c25c75ed7a38aca16171491b5f75055311 Mon Sep 17 00:00:00 2001 From: Sahil Shubham Date: Mon, 6 Sep 2021 15:29:03 +0530 Subject: [PATCH 3/3] Changed action back to on published release; --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f655fcf..898efe40 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,8 @@ name: Publish package on new release on: - push + release: + types: [published] jobs: main: