Skip to content

v3.4.0

v3.4.0 #30

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
build_and_test:
uses: OpenWonderLabs/.github/.github/workflows/nodejs-build-and-test.yml@latest
with:
enable_coverage: true
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
publish:
needs: build_and_test
if: ${{ github.repository == 'OpenWonderLabs/node-switchbot' }}
permissions:
id-token: write
uses: OpenWonderLabs/.github/.github/workflows/npm-publish.yml@latest
secrets:
npm_auth_token: ${{ secrets.npm_token }}
github-releases-to-discord:
name: Discord Webhooks
needs: [build_and_test,publish]
if: ${{ github.repository == 'OpenWonderLabs/node-switchbot' }}
uses: OpenWonderLabs/.github/.github/workflows/discord-webhooks.yml@latest
with:
title: "Node-SwitchBot Release"
description: |
Version `v${{ needs.publish.outputs.NPM_VERSION }}`
url: "https://github.com/homebridge/camera-utils/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}