Skip to content

Commit 5164df5

Browse files
authored
Merge pull request #15 from john-u/master
ci: switch to github actions
2 parents 2fe5164 + a389cbd commit 5164df5

6 files changed

Lines changed: 4218 additions & 3555 deletions

File tree

.circleci/config.yml

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

.github/workflows/ci-cd.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI/CD
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
branches:
8+
- master
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v2
17+
with:
18+
node-version: 14
19+
cache: "npm"
20+
- run: npm ci
21+
- run: npm test
22+
23+
release:
24+
needs: test
25+
26+
# don't run on forks
27+
if: ${{ github.repository_owner == 'SmartThingsCommunity' && github.ref == 'refs/heads/master' }}
28+
29+
runs-on: ubuntu-latest
30+
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: actions/setup-node@v2
34+
with:
35+
node-version: 14
36+
cache: "npm"
37+
- run: npm ci
38+
- name: Release
39+
env:
40+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
GITHUB_TOKEN: ${{ secrets.PI_GITHUB_TOKEN }}
42+
GIT_AUTHOR_NAME: smartthingspi
43+
GIT_AUTHOR_EMAIL: pi-team@smartthings.com
44+
GIT_COMMITTER_NAME: smartthingspi
45+
GIT_COMMITTER_EMAIL: pi-team@smartthings.com
46+
run: npx semantic-release

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# firestore-context-store-nodejs
22

3-
<p>
4-
<a href="https://npmjs.org/package/@smartthings/firestore-context-store"><img src="https://badge.fury.io/js/@smartthings/firestore-context-store.svg"></a>
5-
<a href="https://circleci.com/gh/SmartThingsCommunity/firestore-context-store-nodejs"><img src="https://circleci.com/gh/SmartThingsCommunity/firestore-context-store-nodejs.svg?style=svg"></a>
6-
<a href="https://david-dm.org/SmartThingsCommunity/firestore-context-store-nodejs"><img src="https://david-dm.org/SmartThingsCommunity/firestore-context-store-nodejs.svg?theme=shields.io"></a>
7-
<a href="https://codecov.io/gh/SmartThingsCommunity/firestore-context-store-nodejs"><img src="https://codecov.io/gh/SmartThingsCommunity/firestore-context-store-nodejs/branch/master/graph/badge.svg" /></a>
8-
</p>
9-
103
> Stores SmartApp configuration and auth tokens for use in app-initiated calls
114
125
Used by the [SmartApp SDK](https://github.com/SmartThingsCommunity/smartapp-sdk-nodejs) to store IDs and access tokens for an installed instance of a SmartApp

config/release.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
module.exports = {
2-
analyzeCommits: {
3-
preset: 'eslint'
4-
},
5-
generateNotes: {
6-
preset: 'eslint'
7-
}
2+
preset: 'conventionalcommits'
83
}

0 commit comments

Comments
 (0)