mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
11 hours ago 148aa9512b269231196ee0cf30a950a62d54f881
build(fix): run test only on main branch push hook
1 files modified
4 ■■■■ changed files
package.json 4 ●●●● patch | view | raw | blame | history
package.json
@@ -51,7 +51,7 @@
    },
    "scripts": {
        "hook:commit": "lint-staged --config .lintstagedrc.js",
        "hook:push": "node scripts/test-hugo-quickstart.ts",
        "hook:push": "node -e \"process.exit(require('child_process').execSync('git branch --show-current').toString().trim() === 'main' ? 0 : 1)\" && node scripts/test-hugo-quickstart.ts || true",
        "lint:links": "lychee --config lychee.toml public",
        "lint:markdown": "markdownlint-cli2",
        "lint:markdown:fix": "markdownlint-cli2 --fix",
@@ -77,4 +77,4 @@
        "pre-push": "npm run hook:push"
    },
    "type": "module"
}
}