From 8f5217e3d6360f0990ee1c2ffb67a481e842e268 Mon Sep 17 00:00:00 2001 From: Anatolios Laskaris Date: Wed, 8 Feb 2023 15:07:33 +0200 Subject: [PATCH] chore(ci): Release workflow fixes [fixes FLU-273] (#460) * Fix publishing artifact * Set version * Set avm client version during release * Try linkied components again --- .github/release-please/config.json | 22 ++++++++++++++++++++++ .github/release-please/manifest.json | 3 ++- .github/workflows/release.yml | 4 ++-- avm/client/package-lock.json | 4 ++-- avm/client/package.json | 2 +- 5 files changed, 29 insertions(+), 6 deletions(-) diff --git a/.github/release-please/config.json b/.github/release-please/config.json index 4dd2991e..6dc88b9b 100644 --- a/.github/release-please/config.json +++ b/.github/release-please/config.json @@ -6,6 +6,24 @@ "plugins": [ { "type": "cargo-workspace" + }, + { + "type": "linked-versions", + "groupName": "air-interpreter", + "components": [ + "air", + "air-interpreter", + "avm-client" + ] + }, + { + "type": "linked-versions", + "groupName": "air-beautifier and air-beautify", + "components": [ + "air-beautifier", + "air-beautify", + "air-beautify-wasm" + ] } ], "packages": { @@ -15,6 +33,10 @@ "air-interpreter": { "component": "air-interpreter" }, + "avm/client": { + "release-type": "node", + "component": "avm-client" + }, "avm/interface": {}, "avm/server": {}, "crates/air-lib/air-parser": {}, diff --git a/.github/release-please/manifest.json b/.github/release-please/manifest.json index 86086a10..53bb7e7f 100644 --- a/.github/release-please/manifest.json +++ b/.github/release-please/manifest.json @@ -1,8 +1,9 @@ { - "air": "0.35.1", + "air": "0.35.4", "air-interpreter": "0.35.4", "avm/interface": "0.28.1", "avm/server": "0.28.1", + "avm/client": "0.35.4", "crates/air-lib/air-parser": "0.7.2", "crates/air-lib/execution-info-collector": "0.7.2", "crates/air-lib/interpreter-cid": "0.2.0", diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fe3142f1..3ef82ad6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,7 +76,7 @@ jobs: - name: Commit version bump uses: stefanzweifel/git-auto-commit-action@v4 with: - commit_message: "chore: Bump air-interpreter-wasm version to ${{ steps.version.outputs.version }}" + commit_message: "chore: Bump air-interpreter version to ${{ steps.version.outputs.version }}" branch: ${{ fromJson(needs.release-please.outputs.pr).headBranchName }} commit_user_name: fluencebot commit_user_email: devops@fluence.one @@ -89,7 +89,7 @@ jobs: - release-please permissions: - contents: read + contents: write id-token: write steps: diff --git a/avm/client/package-lock.json b/avm/client/package-lock.json index fedecbb8..2070700d 100644 --- a/avm/client/package-lock.json +++ b/avm/client/package-lock.json @@ -1,12 +1,12 @@ { "name": "@fluencelabs/avm", - "version": "0.0.0", + "version": "0.35.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@fluencelabs/avm", - "version": "0.0.0", + "version": "0.35.4", "license": "Apache 2.0", "devDependencies": { "typescript": "4.9.5" diff --git a/avm/client/package.json b/avm/client/package.json index 47e27d98..6125ced6 100644 --- a/avm/client/package.json +++ b/avm/client/package.json @@ -1,7 +1,7 @@ { "name": "@fluencelabs/avm", "description": "Aquamarine VM", - "version": "0.0.0", + "version": "0.35.4", "main": "./dist/index.js", "repository": "https://github.com/fluencelabs/air", "author": "Fluence Labs",