diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 48bf8442a5f..48d5f7374e2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,11 +2,6 @@ name: Release on: workflow_dispatch: - inputs: - release_type: - description: "Type of release (prerelease, prepatch, patch, minor, preminor, major)" - required: true - default: "patch" jobs: release: @@ -53,6 +48,10 @@ jobs: # Checkout the latest tag git checkout $LATEST_TAG + # Clean any untracked files that differ from the latest tag and reset any changes + git clean -fd + git reset --hard $LATEST_TAG + npx lerna publish from-git --yes --dist-tag latest env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}