diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b268b691..cbdb694a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,9 @@ jobs: with: node-version: "16.x" registry-url: "https://registry.npmjs.org" + + - name: "Get release tag 🏷" + run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: "Install dependencies 📦" run: yarn @@ -43,3 +46,8 @@ jobs: run: yarn publish --verbose --access public --tag ${{ env.RELEASE_TAG }} conda-store-ui.tgz env: NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: "Set latest tag 🏷" + run: yarn tag add @conda-store/conda-store-ui@${{ env.RELEASE_TAG }} latest + env: + NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}