Browse Source

chore(workflow): order cargo publish and limit to 1 (#535)

We were running into race conditions where one package depended on another being published. Limit to only allow one publish at a time, and sort based on dependencies to (hopefully) eliminate the race condition.
Jacob Bolda 5 years ago
parent
commit
cc7c26b245
1 changed files with 7 additions and 6 deletions
  1. 7 6
      .github/workflows/release-cargo.yml

+ 7 - 6
.github/workflows/release-cargo.yml

@@ -13,15 +13,16 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       fail-fast: false
+      max-parallel: 1
       matrix:
         package:
           - name: tauri-bundler
             registryName: tauri-bundler
             path: cli/tauri-bundler
             publishPath: cli/tauri-bundler/target/package # not in workspace so target folder is nested
-          - name: tauri-core
-            registryName: tauri
-            path: tauri
+          - name: tauri-utils
+            registryName: tauri-utils
+            path: tauri-utils
             publishPath: target/package
           - name: tauri-api
             registryName: tauri-api
@@ -31,9 +32,9 @@ jobs:
             registryName: tauri-updater
             path: tauri-updater
             publishPath: target/package
-          - name: tauri-utils
-            registryName: tauri-utils
-            path: tauri-utils
+          - name: tauri-core
+            registryName: tauri
+            path: tauri
             publishPath: target/package
     steps:
       - uses: actions/checkout@v2