Skip to content

Release latest

Release latest #4

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:
pnpm-version: 9.5.0
- 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/changeset@${{ env.BUILD_VERSION }} latest
npm dist-tag add @fuels/eslint-plugin@${{ env.BUILD_VERSION }} latest
npm dist-tag add @fuels/jest@${{ env.BUILD_VERSION }} latest
npm dist-tag add @fuels/kms-account@${{ env.BUILD_VERSION }} latest
npm dist-tag add @fuels/local-storage@${{ env.BUILD_VERSION }} latest
npm dist-tag add @fuels/prettier-config@${{ env.BUILD_VERSION }} latest
npm dist-tag add @fuels/react-xstore@${{ env.BUILD_VERSION }} latest
npm dist-tag add @fuels/ts-config@${{ env.BUILD_VERSION }} latest
npm dist-tag add @fuels/tsup-config@${{ env.BUILD_VERSION }} latest