Skip to content

Commit

Permalink
Install semantic-release and configure GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mturley committed Aug 24, 2020
1 parent 4acbeb2 commit 0c6dffb
Show file tree
Hide file tree
Showing 3 changed files with 2,683 additions and 66 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test-and-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test and Release
on: [push]

jobs:
test-and-release:
name: Run tests and release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: yarn install
- name: Run tests
run: yarn ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn run semantic-release
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
"dist"
],
"repository": "[email protected]:mturley/konveyor-common-ui.git",
"publishConfig": {
"access": "public",
"branches": [
"master"
]
},
"license": "Apache-2.0",
"scripts": {
"test": "jest",
Expand Down Expand Up @@ -52,6 +58,7 @@
"rollup-plugin-postcss": "^3.1.3",
"rollup-plugin-typescript2": "^0.27.1",
"sass-loader": "^9.0.3",
"semantic-release": "^17.1.1",
"ts-jest": "^26.2.0",
"typescript": "^3.9.7"
},
Expand Down
Loading

0 comments on commit 0c6dffb

Please sign in to comment.