Compare commits

...

5 Commits

Author SHA1 Message Date
nostrdev-com
11776c4f5c chore(ci): added staging-pull-request workflow 2025-04-03 10:54:17 +03:00
nostrdev-com
87c510b986 chore: fixing pre-commit git hook 2025-04-03 10:48:57 +03:00
nostrdev-com
990b81abe7 chore(scripts): added preinstall script 2025-04-03 10:43:57 +03:00
nostrdev-com
c274d0b3cd chore: fixing pre-commit git hook 2025-04-03 10:32:49 +03:00
nostrdev-com
862e3b4618 chore: fixing pre-commit git hook 2025-04-03 10:31:29 +03:00
3 changed files with 41 additions and 1 deletions

@ -1,5 +1,7 @@
#!/bin/sh
echo "*****pre-commit hook******"
# Avoid commits to the master branch
BRANCH=`git rev-parse --abbrev-ref HEAD`
REGEX="^(master|main|staging|development)$"

@ -0,0 +1,37 @@
name: Open PR on Staging
on:
pull_request:
types: [opened, edited, synchronize]
branches:
- staging
jobs:
audit_and_check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 20
- name: Audit
run: npm audit --omit=dev
- name: Install Dependencies
run: npm ci
- name: License check
run: npm run license-checker
- name: Lint check
run: npm run lint
- name: Formatter check
run: npm run formatter:check
- name: Create Build
run: npm run build

@ -16,7 +16,8 @@
"lint:fix": "eslint . --fix --ext ts --report-unused-disable-directives --max-warnings 0",
"lint:staged": "eslint --fix --ext ts --report-unused-disable-directives --max-warnings 0",
"lint-staged": "lint-staged",
"start:db": "docker compose -f mongo-docker-compose.yml up -d"
"start:db": "docker compose -f mongo-docker-compose.yml up -d",
"preinstall": "git config core.hooksPath .git-hooks"
},
"repository": {
"type": "git",