nameczz 4 anni fa
parent
commit
46eb4f59c4
1 ha cambiato i file con 7 aggiunte e 5 eliminazioni
  1. 7 5
      .github/workflows/release.yml

+ 7 - 5
.github/workflows/release.yml

@@ -1,6 +1,7 @@
 on:
-  release:
-    types: [published]
+  push:
+    branches:
+      - main
 
 jobs:
   publish:
@@ -11,7 +12,8 @@ jobs:
         uses: actions/setup-node@v1
         with:
           node-version: 12
+
       - name: Semantic release
-        run: |
-          yarn
-          npx semantic-release
+        env:
+          GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
+        run: npx semantic-release