File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ [pull_request]
3+
4+ name : Check
5+
6+ jobs :
7+ check :
8+ name : Run Unit Tests
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v1.0.0
13+ - name : Run tests
14+ run : |
15+ npm ci
16+ npm test
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches :
4+ - master
5+
6+ name : Package
7+
8+ jobs :
9+ check :
10+ name : Package distribution file
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v1
15+ with :
16+ ref : master
17+ - name : Package
18+ run : |
19+ npm ci
20+ npm test
21+ npm run package
22+ - name : Commit
23+ run : |
24+ git config --global user.name "GitHub Actions"
25+ git remote set-url origin https://x-access-token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY
26+ git add dist/
27+ git commit -m "Update dist" || echo "No changes to commit"
28+ git push origin HEAD:master
29+ env :
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments