Skip to content

Commit

Permalink
feat: Exclude 'patch' branches from workflow runs (#58)
Browse files Browse the repository at this point in the history
* feat: Exclude 'patch' branches from workflow runsregistration UI

* fix: labeler
  • Loading branch information
valehasadli authored Dec 19, 2023
1 parent 6abdbf5 commit 1b37922
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
test: src/tests/*
test: tests/*
feat: src/*
core: src/lib/*
channel: src/channels/*
7 changes: 4 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
Expand All @@ -11,6 +8,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
# Add 'if' condition here to check the branch name
if: "!contains(github.ref, 'patch')"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -23,6 +22,8 @@ jobs:
publish-npm:
needs: build
runs-on: ubuntu-latest
# Add 'if' condition here as well to ensure consistency
if: "!contains(github.ref, 'patch')"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down

0 comments on commit 1b37922

Please sign in to comment.