Skip to content

Commit

Permalink
chore: change package.json to test GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal committed Aug 19, 2023
1 parent 27d503b commit 0817930
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/check-node-modules-size.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
name: Check Node Modules Size

on:
pull_request:
paths:
# `yarn.lock` should no longer be present, but we'll keep this here in case we add it back.
- yarn.lock
- package.json
- package-lock.json

push:
branches:
- "*"
# https://stackoverflow.com/questions/68737385/how-to-trigger-github-actions-on-push-of-current-branch/68737519#68737519
on: [push]

jobs:
analyze-size:
Expand Down Expand Up @@ -69,13 +60,13 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const body = `\`node_modules/\` size has changed!\n
const body = `\`node_modules/\` has changed in size.\n
Main branch size: ${process.env.MAIN_SIZE}\n
Current branch size: ${process.env.CURRENT_SIZE}`
const { owner, repo } = github.context.repo;
const commit_sha = github.context.sha;
console.log('commit_sha:', commit_sha');
const { owner, repo } = context.repo;
const commit_sha = context.sha;
console.log('commit_sha:', commit_sha);
console.log('owner:', owner);
console.log('repo:', repo);
const { data } = await github.rest.repos.listPullRequestsAssociatedWithCommit({
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"build": "npm run build:style && react-scripts build",
"build:icons": "pwa-asset-generator ./public/icons/light-icon.svg public/icons --padding 0px --background '#FBDC57' --index ./public/index.html --path '%PUBLIC_URL%' --manifest public/manifest.json && pwa-asset-generator ./public/icons/dark-icon.svg public/icons --padding 0px --background 'black' --dark-mode --splash-only --index ./public/index.html --path '%PUBLIC_URL%' && prettier 'public/index.html' --write",
"build:style": "tailwindcss build src/styles.css -o src/build.css",
"build-storybook": "build-storybook -s public",
"e2e": "cypress run",
"eject": "react-scripts eject",
"lint": "eslint . --fix --ignore-path .gitignore",
"start": "npm run build:style && react-scripts start",
"test": "react-scripts test --env=jsdom",
"storybook": "start-storybook -p 6006 -s public",
"build-storybook": "build-storybook -s public"
"storybook": "start-storybook -p 6006 -s public"
},
"husky": {
"hooks": {
Expand Down

0 comments on commit 0817930

Please sign in to comment.