Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AppElent committed Dec 16, 2024
1 parent 1d19b36 commit a46d5b1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 99 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run npm command on Pull Request

on:
pull_request:
branches:
- main
types: [opened, reopened, synchronize]

jobs:
run-npm-command:
runs-on: ubuntu-latest

steps:
# Check out the repository
- name: Checkout code
uses: actions/checkout@v3

# Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16' # Replace with your desired Node.js version

# Install dependencies
- name: Install dependencies
run: npm install

# Run your npm command
- name: Run npm command
run: npm run build # Replace 'your-command' with the desired npm script
95 changes: 0 additions & 95 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,20 @@
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"build:fix": "npm run lint-fix && tsc -b && vite build",
"tsc": "tsc -b",
"lint": "eslint .",
"preview": "vite preview",
"lint-fix": "eslint --fix ./src",
"format:write": "prettier --write \"**/*.{js,jsx,ts,tsx,mdx}\" --cache",
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,mdx}\" --cache",
"deploy:stg": "npm run lint-fix && npm run build && firebase deploy --only hosting:stg",
"deploy:stg:skipchecks": "npm run build && firebase deploy --only hosting:stg",
"deploy:prd": "npm run lint-fix && npm run build && firebase deploy --only hosting:prd",
"deploy:prd:skipchecks": "npm run build && firebase deploy --only hosting:prd",
"check-updates": "npx npm-check-updates -i",
"docs": "jsdoc -c jsdoc.conf.json",
"npm-check": "npm-check"
},
"dependencies": {
"@andypf/json-viewer": "^2.1.7",
"@emotion/styled": "^11.14.0",
"@faker-js/faker": "^9.3.0",
"@hello-pangea/dnd": "^17.0.0",
Expand All @@ -38,7 +36,6 @@
"material-ui-confirm": "^3.0.16",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react-beautiful-dnd": "^13.1.1",
"react-dom": "^18.3.1",
"react-easy-crop": "^5.2.0",
"react-helmet-async": "^2.0.5",
Expand Down

0 comments on commit a46d5b1

Please sign in to comment.