Skip to content

Commit

Permalink
feat: New release management setup
Browse files Browse the repository at this point in the history
  • Loading branch information
nervetattoo committed Mar 30, 2021
1 parent 175b175 commit d02fb06
Show file tree
Hide file tree
Showing 5 changed files with 2,036 additions and 57 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install dependencies
run: |
yarn install
yarn build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
4 changes: 4 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
release:
branches:
- master
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ show_header: false
control: false
```
## Note about 1.0 release
The 1.0 release only includes a rewrite to Typescript and a change of release management.
It does not include bug fixes or new features, in fact, due to the Typescript release I expect the 1.0 package to be less stable than 0.42.
## Requirements
Home Assistant 0.84 or higher
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-thermostat",
"version": "0.42.0",
"version": "1.0.0-development",
"description": "A different take on the thermostat card for Home Assistant Lovelace UI",
"main": "dist/simple-thermostat.js",
"repository": "git@github.com:nervetattoo/simple-thermostat.git",
Expand Down Expand Up @@ -44,7 +44,8 @@
"size-limit": "^4.10.1",
"ts-jest": "^26.5.4",
"tslib": "^2.1.0",
"typescript": "^4.2.3"
"typescript": "^4.2.3",
"semantic-release": "^17.4.2"
},
"scripts": {
"release": "release-it",
Expand All @@ -55,7 +56,8 @@
"dev:test": "jest --watch",
"size-build": "yarn build",
"size": "size-limit",
"analyze": "size-limit --why"
"analyze": "size-limit --why",
"semantic-release": "semantic-release"
},
"husky": {
"hooks": {
Expand Down
Loading

0 comments on commit d02fb06

Please sign in to comment.