From 67fa454e0a35967a44c73fcfacee5a6fbda01710 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 12 Oct 2020 02:43:23 +0530 Subject: [PATCH 1/2] Fixes publish records script --- .github/workflows/publish-records.yml | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-records.yml b/.github/workflows/publish-records.yml index f7b49f627..5fbadd153 100644 --- a/.github/workflows/publish-records.yml +++ b/.github/workflows/publish-records.yml @@ -8,7 +8,7 @@ jobs: publish: runs-on: ubuntu-latest env: - CI: '1' + CI: 1 ENV: production DOMAIN_USER: ${{ secrets.DOMAIN_USER }} DOMAIN_API_KEY: ${{ secrets.DOMAIN_API_KEY }} @@ -23,4 +23,4 @@ jobs: - name: Publishing records uses: borales/actions-yarn@v2.0.0 with: - cmd: publish-records + cmd: publish-records:ci diff --git a/package.json b/package.json index 055959d8c..1e4d031f1 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Register *.is-a.dev domains for free", "scripts": { "test": "ENV=test jest", - "publish-records": "yarn test && node ./scripts/register-domains.js" + "publish-records:ci": "ENV=test yarn test && ENV=production node ./scripts/register-domains.js" }, "repository": { "type": "git", From 2f5bf97af766e693ff17b7fbe34c44aac265a443 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 12 Oct 2020 02:46:53 +0530 Subject: [PATCH 2/2] Removes test from publishci --- .github/workflows/publish-records.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-records.yml b/.github/workflows/publish-records.yml index 5fbadd153..e4b02e011 100644 --- a/.github/workflows/publish-records.yml +++ b/.github/workflows/publish-records.yml @@ -23,4 +23,4 @@ jobs: - name: Publishing records uses: borales/actions-yarn@v2.0.0 with: - cmd: publish-records:ci + cmd: publish-records diff --git a/package.json b/package.json index 1e4d031f1..8a92a77a1 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Register *.is-a.dev domains for free", "scripts": { "test": "ENV=test jest", - "publish-records:ci": "ENV=test yarn test && ENV=production node ./scripts/register-domains.js" + "publish-records": "node ./scripts/register-domains.js" }, "repository": { "type": "git",