diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml new file mode 100644 index 0000000..cb54a2f --- /dev/null +++ b/.github/workflows/size-limit.yml @@ -0,0 +1,16 @@ +name: "size" +on: + pull_request: + branches: + - develop + - feat/ligthouse-enhancements +jobs: + size: + runs-on: ubuntu-latest + env: + CI_JOB_NUMBER: 1 + steps: + - uses: actions/checkout@v1 + - uses: andresz1/size-limit-action@v1.0.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..c1ad9b3 --- /dev/null +++ b/action.yml @@ -0,0 +1,13 @@ +name: 'size-limit-action' +description: 'size-limit action' +author: 'Salil Kapoor ' +branding: + icon: 'activity' + color: 'green' +inputs: + access_token: + required: true + description: 'a github access token' +runs: + using: 'node12' + main: 'build/index.html' \ No newline at end of file diff --git a/package.json b/package.json index 7366b98..e1c9c93 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "todo-app", - "version": "0.1.0", + "name": "react-perf-tools", + "version": "1.0.0", "private": true, "dependencies": { "@testing-library/jest-dom": "^4.2.4",