Release latest #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Release latest" | |
on: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
BUILD_VERSION: "" | |
jobs: | |
release-npm-latest: | |
name: Tag packages as latest | |
runs-on: buildjet-4vcpu-ubuntu-2204 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# need this to get full git-history/clone in order to build changelogs and check changesets | |
fetch-depth: 0 | |
- uses: FuelLabs/github-actions/setups/node@master | |
with: | |
node-version: 20.11.0 | |
pnpm-version: 8.15.7 | |
- uses: FuelLabs/github-actions/setups/npm@master | |
with: | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
- name: Collect current version | |
run: | | |
echo "BUILD_VERSION=$(pnpm -s packages:version)" >> $GITHUB_ENV | |
- name: Change tag to latest | |
run: | | |
npm dist-tag add @fuels/connectors@${{ env.BUILD_VERSION }} latest |