Skip to content

Commit

Permalink
Merge pull request #30 from telerik/gh_actions
Browse files Browse the repository at this point in the history
chore: fix github actions
  • Loading branch information
Ivan Peshev authored Oct 29, 2019
2 parents 41498ba + 444e616 commit 822232d
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 45 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/branch_push_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Branch push

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x]

steps:
- name: Checkout branch
uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: |
npm install
- name: Lint
run: npm run lint
- name: Build
run: |
npm run build-package
- name: Test
run: |
CHROME_BIN=`which chrome` NO_SANDBOX=true ENV_BROWSER=Chrome_headless npm run test
- name: Release
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop'
env:
GITHUB_ACTION: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git reset --hard HEAD
git checkout "${GITHUB_REF:11}"
npm run semantic-release
11 changes: 0 additions & 11 deletions .npmignore

This file was deleted.

32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"devDependencies": {
"@progress/kendo-package-tasks": "^3.0.3",
"@telerik/eslint-config": "^1.0.0",
"@telerik/semantic-prerelease": "^1.0.0",
"@telerik/semantic-prerelease": "^1.3.3",
"cz-conventional-changelog": "^1.1.5",
"ghooks": "^1.0.3",
"gulp": "3.9.0",
Expand Down Expand Up @@ -75,5 +75,6 @@
"getLastRelease": "@telerik/semantic-prerelease/getLastRelease",
"verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
"verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
}
},
"files": ["dist"]
}

0 comments on commit 822232d

Please sign in to comment.