Skip to content

Merge pull request #41 from Sitlintac/update-dependencies-esm #68

Merge pull request #41 from Sitlintac/update-dependencies-esm

Merge pull request #41 from Sitlintac/update-dependencies-esm #68

Workflow file for this run

name: CI/CD
on:
push:
pull_request:
workflow_dispatch:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
cache: "npm"
- run: npm ci
- run: npm test
release:
needs: test
# don't run on forks
if: ${{ github.repository_owner == 'SmartThingsCommunity' && github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
cache: "npm"
- run: npm ci
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PI_GITHUB_TOKEN }}
GIT_AUTHOR_NAME: smartthingspi
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: smartthingspi
GIT_COMMITTER_EMAIL: [email protected]
run: npx semantic-release