Skip to content

Commit ac5576a

Browse files
author
Ivan Peshev
authored
chore: github actions (#79)
* chore: github actions * chore: fix tasks * chore: fix tasks * fix: new version ot semantic-prerelease
1 parent 46f75ca commit ac5576a

File tree

4 files changed

+48
-37
lines changed

4 files changed

+48
-37
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Branch push
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [10.x]
13+
14+
steps:
15+
- name: Checkout branch
16+
uses: actions/checkout@v1
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- name: Install
22+
run: |
23+
npm install
24+
- name: Lint
25+
run: npm run lint
26+
- name: Build
27+
run: |
28+
npm run build-package
29+
- name: Test
30+
run: |
31+
npm run test
32+
npm run locale-tests
33+
- name: Release
34+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop'
35+
env:
36+
TRAVIS: true
37+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
run: |
40+
git reset --hard HEAD
41+
git checkout "${GITHUB_REF:11}"
42+
GITHUB_ACTION=true npm run semantic-release

.npmignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"devDependencies": {
2525
"@telerik/eslint-config": "^1.0.0",
2626
"@progress/kendo-package-tasks": "^3.0.0",
27-
"@telerik/semantic-prerelease": "^1.0.0",
27+
"@telerik/semantic-prerelease": "^1.3.2",
2828
"cldr-data": "latest",
2929
"cz-conventional-changelog": "^1.1.5",
3030
"ghooks": "^1.0.3",
@@ -59,5 +59,9 @@
5959
"verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
6060
"verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
6161
},
62-
"cldr-data-coverage": "full"
62+
"cldr-data-coverage": "full",
63+
"files": [
64+
"dist",
65+
"build-locales.js"
66+
]
6367
}

0 commit comments

Comments
 (0)