forked from Choices-js/Choices
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit and push built files to master (Choices-js#756)
* Commit and push built files to master * Testing... * Add name * Add fallback * Revert back to master branch
- Loading branch information
1 parent
933ea60
commit e67b8a3
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,8 @@ jobs: | |
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10 | ||
# run all tests | ||
- run: | | ||
- name: Build and run all tests | ||
run: | | ||
npm ci | ||
npm run build | ||
npx bundlesize | ||
|
@@ -32,6 +32,15 @@ jobs: | |
BUNDLESIZE_GITHUB_TOKEN: ${{secrets.BUNDLESIZE_GITHUB_TOKEN}} | ||
FORCE_COLOR: 2 | ||
HUSKY_SKIP_INSTALL: true | ||
- name: Commit built files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git commit -m "Update build files 🏗" -a || echo "No changes to commit" && exit 0 | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload coverage to Codecov | ||
run: bash <(curl -s https://codecov.io/bash) | ||
|