Skip to content

Commit 025444a

Browse files
committed
build: fix npm release
1 parent fbfc6db commit 025444a

File tree

3 files changed

+167
-169
lines changed

3 files changed

+167
-169
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
echo "::set-output name=release_version::$RELEASE_VERSION"
107107
- run: |
108108
npm ci
109-
export NPM_TAG=$RELEASE_VERSION
109+
export NPM_TAG=$(node index.js get-tag)
110110
npm publish --tag $NPM_TAG
111111
working-directory: ./dist/npm
112112
env:

dist/npm/bin/devspace

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ if [ ! -f "$BINARY" ] || [ "$STAT" -lt 10000 ]; then
3535

3636
echo "Running: node $BASEDIR/$INDEX_FILE finish-install $BINDIR"
3737
/usr/bin/env node "$BASEDIR/$INDEX_FILE" finish-install $BINDIR;
38+
if [ $? -ne 0 ]; then
39+
exit 1
40+
fi
3841

3942
CMD_BIN=$(command -v cmd.exe)
4043

0 commit comments

Comments
 (0)