浏览代码

feat(init)

nameczz 4 年之前
父节点
当前提交
5b6c8c4a80
共有 1 个文件被更改,包括 20 次插入0 次删除
  1. 20 0
      .github/workflows/release.yml

+ 20 - 0
.github/workflows/release.yml

@@ -0,0 +1,20 @@
+on:
+  push:
+    branches:
+      - feature/cicd
+
+jobs:
+  publish:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: Setup Node.js
+        uses: actions/setup-node@v1
+        with:
+          node-version: 12
+      - name: Install dependencies
+        run: yarn
+      - name: Semantic release
+        env:
+          GITHUB_TOKEN: ${{ secrets.P_GITHUB_TOKEN }}
+        run: npx semantic-release