Skip to content

chore(deps): update dependency prettier to v3.3.0 (#323) #164

chore(deps): update dependency prettier to v3.3.0 (#323)

chore(deps): update dependency prettier to v3.3.0 (#323) #164

Workflow file for this run

name: "🚀 main"
on:
push:
branches:
- main
paths:
- ".github/workflows/main.yml"
- "src/**"
- "husky-hooks.config.default.js"
- "package.json"
- "tsconfig.json"
- "yarn.lock"
env:
NODE_ENV: "development"
RUNTIME_ENV: "main"
jobs:
build:
name: Build
runs-on: ubuntu-22.04
timeout-minutes: 15
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install depencencies
run: yarn install
- name: Build
run: yarn build
# @todo: Figure out why we would need this
- name: Fix - Link package
run: |
yarn link
# @todo: Why would this be needed?
- name: Fix - Executable permissions
run: |
chmod +x ./lib/bin.js
- name: Fix - Delete current config
run: |
rm husky-hooks.config.js
- name: Test - Command 'create-config'
run: |
npx @jeliasson/husky-hooks create-config
- name: Test - Command 'create-config --force'
run: |
npx @jeliasson/husky-hooks create-config --force
- name: Fix - Update protectedBranches to be []
run: |
cp husky-hooks.config.js husky-hooks.config.js.bak && \
cat husky-hooks.config.js.bak | sed 's/.*protectedBranches.*/\ protectedBranches\:\ [],/' > husky-hooks.config.js
- name: Debug - Display config
run: |
cat husky-hooks.config.js
- name: Test - 'pre-commit' hooks
run: |
npx @jeliasson/husky-hooks pre-commit
- name: Test - 'pre-push' hooks
run: |
npx @jeliasson/husky-hooks pre-push