Explorar el Código

ci: pr title & commit msg for releases

Sven hace 1 año
padre
commit
fc03613125
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      .github/workflows/publish.yml

+ 5 - 0
.github/workflows/publish.yml

@@ -13,6 +13,9 @@ jobs:
     strategy:
       matrix:
         node-version: [18.x]
+    env:
+      PR_TITLE: "Create Release"
+      COMMIT_MSG: "chore: create new release"
     steps:
       - uses: actions/checkout@v3
       - uses: actions/setup-node@v3
@@ -27,6 +30,8 @@ jobs:
         id: changesets
         with:
           publish: npm run publish-package
+          commit: ${{ env.COMMIT_MSG }}
+          title: ${{ env.PR_TITLE }}
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           NPM_TOKEN: ${{ secrets.NPM_TOKEN }}