diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml new file mode 100644 index 000000000..8d02c8fb1 --- /dev/null +++ b/.github/workflows/size-limit.yml @@ -0,0 +1,24 @@ +name: 'size' +on: + pull_request: + branches: + - master +jobs: + size: + runs-on: ubuntu-latest + env: + CI_JOB_NUMBER: 1 + steps: + - uses: actions/checkout@v1 + - run: npm install -g npm + - run: npm install + + - run: npm run bundle --workspaces --if-present + - run: npm run size-limit --workspaces --if-present + + # commented out until the job can be configured + # - uses: andresz1/size-limit-action@v1 + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # build_script: npm run bundle --workspaces --if-present + # script: npm run size-limit --workspaces --if-present diff --git a/demos/ledgerhq/package.json b/demos/ledgerhq/package.json index 6f3b8b9ac..86d13bb62 100644 --- a/demos/ledgerhq/package.json +++ b/demos/ledgerhq/package.json @@ -28,5 +28,9 @@ "test:coverage": "", "test": "" }, - "version": "0.14.1" + "version": "0.14.1", + "devDependencies": { + "esbuild": "^0.15.16", + "size-limit": "^8.1.0" + } } diff --git a/demos/sample-javascript/package.json b/demos/sample-javascript/package.json index 17af36747..183639ad8 100644 --- a/demos/sample-javascript/package.json +++ b/demos/sample-javascript/package.json @@ -25,5 +25,9 @@ "test:coverage": "", "test": "" }, - "version": "0.14.1" + "version": "0.14.1", + "devDependencies": { + "esbuild": "^0.15.16", + "size-limit": "^8.1.0" + } } diff --git a/docs/generated/changelog.html b/docs/generated/changelog.html index 1f6e9b2bb..240bd8b9d 100644 --- a/docs/generated/changelog.html +++ b/docs/generated/changelog.html @@ -13,6 +13,7 @@

Agent-JS Changelog

Version x.x.x

Version 0.14.1