Skip to content

Commit

Permalink
Filter based on path
Browse files Browse the repository at this point in the history
  • Loading branch information
henokgetachew committed Aug 23, 2024
1 parent 85484be commit f080f3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/npm-publish-cht-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Publish cht-deploy to npm

on:
push:
branches:
- '**'
paths:
- 'scripts/deploy/**'

Expand Down Expand Up @@ -35,4 +33,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release --branches=${{ github.ref_name }} --config ./scripts/deploy/.releaserc.json
run: npx semantic-release --config ./scripts/deploy/.releaserc.json
7 changes: 7 additions & 0 deletions scripts/deploy/.releaserc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"branches": [
"master",
{
"name": "*",
"prerelease": "${name}"
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
Expand Down

0 comments on commit f080f3c

Please sign in to comment.