From 67fa454e0a35967a44c73fcfacee5a6fbda01710 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 12 Oct 2020 02:43:23 +0530 Subject: [PATCH] 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",