Skip to content

Commit

Permalink
ci: add release in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiHash committed Mar 7, 2021
1 parent f1123cc commit 5e7ab23
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
- name: Build the project
run: npm run build
env:
CI: true
CI: true
11 changes: 10 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
name: Lint
on: [push]

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main

jobs:
eslint:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on: workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm ci
- name: Build
run: npm run build
env:
CI: true
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Homebridge La Crosse View

[![npm](https://badgen.net/npm/v/homebridge-lacrosseview) ![npm](https://badgen.net/npm/dt/homebridge-lacrosseview)](https://www.npmjs.com/package/homebridge-camera-ffmpeg)
[![npm](https://badgen.net/npm/v/homebridge-lacrosseview) ![npm](https://badgen.net/npm/dt/homebridge-lacrosseview)](https://www.npmjs.com/package/homebridge-lacrosseview)

[Homebridge](https://homebridge.io) Plugin Providing La Crosse View ([iOS](https://apps.apple.com/app/la-crosse-view/id1006925791), [android](https://play.google.com/store/apps/details?id=com.lacrosseview.app)) sensors support

Expand Down
19 changes: 19 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@types/node": "^14.14.31",
"@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1",
"conventional-changelog-conventionalcommits": "^4.5.0",
"eslint": "^7.21.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
Expand Down

0 comments on commit 5e7ab23

Please sign in to comment.