Skip to content

Commit

Permalink
chore: refactor package scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sungik-choi committed May 29, 2023
1 parent 7266f53 commit bca2bbe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
# This is a basic workflow to help you get started with Actions

name: Release

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
name: Build
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"**/*.(js|ts)?(x)": ["yarn lint:fix", "yarn format"]
"**/*.(js|ts)?(x)": ["yarn lint:fix", "yarn format", "yarn typecheck"]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,yml}\"",
"start": "gatsby develop",
"serve": "gatsby serve",
"clean": "gatsby clean",
"lint": "eslint '**/*.{ts,tsx}'",
"lint:fix": "npm run lint -- --fix",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,yml}\"",
"typecheck": "tsc --noEmit",
"semantic-release": "semantic-release",
"lint-staged": "lint-staged",
"pre-commit": "yarn lint-staged && yarn typecheck",
"pre-commit": "yarn lint-staged",
"postinstall": "husky install"
},
"dependencies": {
Expand Down

0 comments on commit bca2bbe

Please sign in to comment.