Skip to content

Commit

Permalink
chore(ci): report bundlezise to bundlewatch.io
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Nov 15, 2019
1 parent 87c434a commit 01819f1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -32,6 +32,14 @@ jobs:
tsc --lib dom,es6 --noEmit test/ts/dist-sweetalert2.ts sweetalert2.d.ts
tsc --lib dom,es6 --noEmit test/ts/src-sweetalert2.ts sweetalert2.d.ts
- name: Report bundlezise to bundlewatch.io
env:
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
CI_COMMIT_SHA: ${{ github.sha }}
run: |
sudo npm i -g bundlewatch
bundlewatch
- name: Report coverage to coveralls.io
uses: coverallsapp/github-action@master
with:
Expand All @@ -43,8 +51,8 @@ jobs:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn add --dev semantic-release@16.0.0-beta.26 @semantic-release/changelog@3 @semantic-release/exec@3.4.0-beta.2 @semantic-release/git@7.1.0-beta.3
./node_modules/.bin/semantic-release
sudo npm i -g semantic-release@16.0.0-beta.26 @semantic-release/changelog@3 @semantic-release/exec@3.4.0-beta.2 @semantic-release/git@7.1.0-beta.3
semantic-release
skip:
if: "contains(github.event.commits[0].message, '[skip ci]')"
Expand Down
8 changes: 8 additions & 0 deletions package.json
Expand Up @@ -58,6 +58,14 @@
"src",
"sweetalert2.d.ts"
],
"bundlewatch" : {
"files": [
{
"path": "dist/sweetalert2.all.min.js",
"maxSize": "20kB"
}
]
},
"author": "Limon Monte <limon.monte@gmail.com> (https://limonte.github.io)",
"contributors": [
"Giuseppe Verni (https://github.com/gverni)",
Expand Down

0 comments on commit 01819f1

Please sign in to comment.