Skip to content

Commit 6b60247

Browse files
authored
Merge pull request #806 from cygaar/update_release
fix: part 2 of updating the npm publish workflow
2 parents 184e0bb + 0569dfc commit 6b60247

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/release.yaml

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ name: Release
22

33
on:
44
workflow_dispatch:
5-
inputs:
6-
release_type:
7-
description: "Type of release (prerelease, prepatch, patch, minor, preminor, major)"
8-
required: true
9-
default: "patch"
105

116
jobs:
127
release:
@@ -53,6 +48,10 @@ jobs:
5348
# Checkout the latest tag
5449
git checkout $LATEST_TAG
5550
51+
# Clean any untracked files that differ from the latest tag and reset any changes
52+
git clean -fd
53+
git reset --hard $LATEST_TAG
54+
5655
npx lerna publish from-git --yes --dist-tag latest
5756
env:
5857
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)