From e184d2e8cf9e5fe468269867d8a85a55f96f51ce Mon Sep 17 00:00:00 2001 From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com> Date: Sun, 28 Apr 2024 15:58:10 +0100 Subject: [PATCH] fix action --- .github/workflows/publish-dev.yml | 7 +++---- .github/workflows/publish.yml | 7 +++---- package.json | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-dev.yml b/.github/workflows/publish-dev.yml index d6f7e31..0d7836b 100644 --- a/.github/workflows/publish-dev.yml +++ b/.github/workflows/publish-dev.yml @@ -2,15 +2,13 @@ name: Publish DEV on: release: - branches: - - dev - types: - - published + types: [published] jobs: build: runs-on: ubuntu-latest steps: + if: github.event.release.prereleased == true - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: @@ -24,6 +22,7 @@ jobs: needs: build runs-on: ubuntu-latest steps: + if: github.event.release.prereleased == true - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d0c6c4c..41baf8f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,15 +2,13 @@ name: Publish RELEASE on: release: - branches: - - main - types: - - published + types: [published] jobs: build: runs-on: ubuntu-latest steps: + if: github.event.release.prereleased == false - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: @@ -24,6 +22,7 @@ jobs: needs: build runs-on: ubuntu-latest steps: + if: github.event.release.prereleased == false - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: diff --git a/package.json b/package.json index 0aea917..7d0fc2c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-unifi-os", - "version": "1.0.0-dev.0", + "version": "1.0.0-dev.1", "description": "Nodes to access UniFi data using endpoints and websockets", "main": "build/nodes/unifi.js", "scripts": {