From 36501bf342c89105bc6c4812da8be24b330a8016 Mon Sep 17 00:00:00 2001 From: Nicholas Griffin Date: Fri, 28 Jun 2024 13:58:35 +0100 Subject: [PATCH] chore: adjust workflows for canary publishing --- .github/workflows/codeql.yml | 4 ++-- .github/workflows/coverage.yml | 4 ++++ .github/workflows/docs.yml | 2 +- .github/workflows/publish.yml | 4 ++++ .github/workflows/test.yml | 4 ++++ package.json | 1 + 6 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2f44a5c..7f34f6c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,10 +13,10 @@ name: "CodeQL" on: push: - branches: [ "main" ] + branches: [ "main", "canary", "*.x" ] pull_request: # The branches below must be a subset of the branches above - branches: [ "main" ] + branches: [ "main", "canary", "*.x" ] schedule: - cron: '41 21 * * 3' diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 48c3d53..2b7705a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -3,9 +3,13 @@ on: pull_request: branches: - 'main' + - canary + - "*.x" push: branches: - main + - canary + - "*.x" permissions: contents: read diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 53956e3..177277c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,7 +4,7 @@ name: Deploy static content to Pages on: # Runs on pushes targeting the default branch push: - branches: ["main"] + branches: ["main", "canary", "*.x"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fb9fc41..140ebcc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,5 +1,9 @@ name: Publish Package to npmjs on: + push: + branches: + - canary + - "*.x" workflow_dispatch: jobs: build: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cdfbf28..8c91dec 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,9 +3,13 @@ on: pull_request: branches: - 'main' + - canary + - "*.x" push: branches: - main + - canary + - "*.x" permissions: contents: read diff --git a/package.json b/package.json index 7b09e5f..2307a2d 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "release": { "branches": [ "main", + "*.x", { "name": "canary", "prerelease": true