Merge branch 'main' into patch-2

This commit is contained in:
Akshay Nair
2020-10-06 23:52:57 +05:30
committed by GitHub
4 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -3,4 +3,4 @@ domain:
documentation:
- ./*.md
- docs/*.md
- ./**/*.md
+2 -2
View File
@@ -19,6 +19,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Labelling pull request
uses: actions/labeler@v2
uses: actions/labeler@main
with:
repo-token: "${{secrets.GITHUB_TOKEN}}"
repo-token: "${{ secrets.GITHUB_TOKEN }}"
+1 -1
View File
@@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Register *.is-a.dev domains for free",
"scripts": {
"test": "jest",
"test": "ENV=test jest",
"publish-records": "yarn test && node ./scripts/register-domains.js"
},
"repository": {
+4 -2
View File
@@ -8,12 +8,14 @@ if (!CI) {
const { NC_USER, NC_API_KEY, NC_DOMAIN, IP_ADDRESS } = process.env;
const IS_TEST = ENV === 'test';
module.exports = {
ENV,
VALID_RECORD_TYPES: ['CNAME', 'A', 'ALIAS', 'URL'],
NC_DOMAIN: NC_DOMAIN || 'booboo.xyz',
NC_USER,
NC_API_KEY,
NC_USER: IS_TEST ? 'testuser' : NC_USER,
NC_API_KEY: IS_TEST ? 'testkey' : NC_API_KEY,
IP_ADDRESS,
TTL: 5*60,
};