Browse Source

fix(covector): asset configuration, update action (#3425)

Lucas Fernandes Nogueira 3 years ago
parent
commit
6d8073efff

+ 8 - 2
.changes/config.json

@@ -72,7 +72,7 @@
       ],
       "assets": [
         {
-          "path": "${ pkg.path }/target/package/${ pkgFile.pkg.name }-${ pkgFile.version }.crate",
+          "path": "${ pkg.path }/target/package/${ pkg.pkg }-${ pkgFile.version }.crate",
           "name": "${ pkg.pkg }-${ pkgFile.version }.crate"
         }
       ]
@@ -287,7 +287,13 @@
         "tauri-bundler",
         "tauri-utils"
       ],
-      "postversion": "cargo check"
+      "postversion": "cargo check ${ pkg.crate || pkg.pkg }",
+      "assets": [
+        {
+          "path": "${ pkg.path }/target/package/tauri-cli-${ pkgFile.version }.crate",
+          "name": "${ pkg.pkg }-${ pkgFile.version }.crate"
+        }
+      ]
     },
     "create-tauri-app": {
       "path": "./tooling/create-tauri-app",

+ 1 - 1
.github/workflows/change-status-on-PR.yml

@@ -14,7 +14,7 @@ jobs:
         with:
           fetch-depth: 0
       - name: covector status
-        uses: jbolda/covector/packages/action@feat/enable-prereleases
+        uses: jbolda/covector/packages/action@covector-v0
         id: covector
         with:
           command: "status"

+ 1 - 1
.github/workflows/covector-version-or-publish.yml

@@ -53,7 +53,7 @@ jobs:
           git config --global user.name "${{ github.event.pusher.name }}"
           git config --global user.email "${{ github.event.pusher.email }}"
       - name: covector version or publish (publish when no change files present)
-        uses: jbolda/covector/packages/action@feat/enable-prereleases
+        uses: jbolda/covector/packages/action@covector-v0
         id: covector
         env:
           NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

+ 1 - 1
package.json

@@ -15,7 +15,7 @@
     "postinstall": "husky install"
   },
   "devDependencies": {
-    "covector": "^0.5.3",
+    "covector": "^0.7.3",
     "husky": "^6.0.0",
     "prettier": "^2.5.1"
   },