File tree Expand file tree Collapse file tree 3 files changed +72
-0
lines changed
Expand file tree Collapse file tree 3 files changed +72
-0
lines changed Original file line number Diff line number Diff line change 1+ # Builds package and publishes it on npm.
2+ # Triggered on pushes to develop, master and release branches
3+ name : CD
4+
5+ on :
6+ workflow_dispatch :
7+ push :
8+ branches :
9+ - master
10+ - develop
11+ - release-*
12+
13+ jobs :
14+ build :
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : Check out branch
19+ uses : actions/checkout@v2
20+ with :
21+ fetch-depth : 0 # Fetch all branches
22+
23+ - name : Publish release
24+ run : npm run semantic-release
25+ env :
26+ NPM_TOKEN : ${{ secrets.NPM_TELERIK_TOKEN }}
27+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
Original file line number Diff line number Diff line change 1+ # Builds the package and runs all tests.
2+ name : CI
3+
4+ on :
5+ push :
6+ branches-ignore :
7+ - master
8+ - develop
9+ - release-*
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Check out repository
17+ uses : actions/checkout@v2
18+
19+ - name : Install modules
20+ run : npm install --no-audit --ignore-scripts
21+
22+ - name : Lint
23+ run : npm run lint
Original file line number Diff line number Diff line change 1+ # Publishes changes from develop to master.
2+ #
3+ # * Triggers the CD workflow to publish the package if needed.
4+ # * Documentation will be published on the official site.
5+ name : Publish
6+
7+ on : workflow_dispatch
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Check out master
15+ uses : actions/checkout@v2
16+ with :
17+ ref : master
18+ fetch-depth : 0 # Fetch all branches
19+ token : ${{ secrets.GH_TOKEN }}
20+
21+ - name : Fast-forward master to develop
22+ run : ./bin/release-master
You can’t perform that action at this time.
0 commit comments