Skip to content

Commit d8917c0

Browse files
committed
make sure we get a clean version
1 parent e697949 commit d8917c0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ jobs:
5757
- run: bun run nail-workspace-dependency-versions
5858

5959
- run: |
60-
VERSION=$(npm version ${{ github.event.inputs.release_type }} -m "%s ${{ github.event.inputs.description }}" | tr -d '\n')
61-
echo "versionTag=${VERSION}" >> $GITHUB_ENV
60+
npm version ${{ github.event.inputs.release_type }} -m "%s ${{ github.event.inputs.description }}"
61+
VERSION=$(node -p "require('./package.json').version")
62+
echo "versionTag=v${VERSION}" >> $GITHUB_ENV
6263
working-directory: packages/react-native-device-activity
6364
6465
- name: Setup NPM Authentication

0 commit comments

Comments
 (0)