chore(release): Do not set version, use tag instead (#658)

* Do not set version, use tag instead

* Fix

* Fix
This commit is contained in:
Anatolios Laskaris 2023-02-01 11:21:33 +02:00 committed by GitHub
parent 292caa9d31
commit 1ef1ebd1df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 17 deletions

View File

@ -3,15 +3,15 @@ name: "Publish aqua"
on:
workflow_dispatch:
inputs:
version:
tag:
description: "tag to checkout to"
type: string
description: "aqua version to publish"
required: true
workflow_call:
inputs:
version:
tag:
description: "tag to checkout to"
type: string
description: "aqua version to publish"
required: true
env:
@ -25,6 +25,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ inputs.tag }}
- name: Cache Scala
uses: coursier/cache-action@v6
@ -76,6 +78,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ inputs.tag }}
- name: Download aqua-cli artifact
uses: actions/download-artifact@v3
@ -105,10 +109,6 @@ jobs:
cache-dependency-path: "cli/cli-npm/package-lock.json"
cache: "npm"
- name: Set version
run: npm version --allow-same-version ${{ github.event.inputs.version }}
working-directory: cli/cli-npm
- run: npm i
working-directory: cli/cli-npm
@ -134,6 +134,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ inputs.tag }}
- name: Download aqua-api artifact
uses: actions/download-artifact@v3
@ -163,10 +165,6 @@ jobs:
cache-dependency-path: "api/aqua-api-npm/package-lock.json"
cache: "npm"
- name: Set version
run: npm version --allow-same-version ${{ github.event.inputs.version }}
working-directory: api/aqua-api-npm
- run: npm i
working-directory: api/aqua-api-npm
@ -189,6 +187,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ inputs.tag }}
- name: Download aqua-lsp artifact
uses: actions/download-artifact@v3
@ -218,10 +218,6 @@ jobs:
cache-dependency-path: "language-server/language-server-npm/package-lock.json"
cache: "npm"
- name: Set version
run: npm version --allow-same-version ${{ github.event.inputs.version }}
working-directory: language-server/language-server-npm
- run: npm i
working-directory: language-server/language-server-npm

View File

@ -87,7 +87,7 @@ jobs:
needs: release-please
uses: ./.github/workflows/publish.yml
with:
version: ${{ needs.release-please.outputs.version }}
tag: ${{ github.ref }}
slack:
if: always()