Skip to content

Commit

Permalink
fix: update node and types (#59)
Browse files Browse the repository at this point in the history
* fix: update node and types

* fix: update pipeline

* chore: update scripts
  • Loading branch information
dankreiger committed Nov 26, 2022
1 parent e929b34 commit 1be1f4e
Show file tree
Hide file tree
Showing 19 changed files with 29,249 additions and 7,948 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-
- name: Install Dependencies
run: yarn
run: npm ci
- name: Run a security audit
run: npx audit-ci --critical --report-type summary
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build, Test, and Publish to NPM Registry
name: Publish to NPM Registry
on:
push:
branches: [main]
release:
types: [created]
jobs:
publish:
name: 'On Main Push - Release version to NPM Registry'
Expand All @@ -28,14 +28,14 @@ jobs:
- name: Lint
run: npm run lint

# - name: Test
# run: npm run test --ci --coverage --maxWorkers=2
- name: Test
run: npm run test --ci --coverage --maxWorkers=2

- name: Build
run: npm run build

- name: Create release and publish scoped package
run: HUSKY=0 yarn semantic-release
run: HUSKY=0 npm run release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions .lintstagedrc

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.16.0
18.12.1
20 changes: 20 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
pre-commit:
parallel: true
commands:
lint:
glob: "src/**/*.{js,ts,tsx}"
run: npm run lint
format:
run: npm run format
build:
run: npm run build
check-branch:
run: npm run protect
commit-msg:
commands:
check-commits:
run: npx commitlint --edit
post-merge:
install-deps-postmerge:
tags: frontend
run: npx install-deps-postmerge

0 comments on commit 1be1f4e

Please sign in to comment.