Skip to content

Commit 0a2aa5a

Browse files
committed
chore: ci workflow
1 parent b5141c9 commit 0a2aa5a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/scripts/npm-publish-ci.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
TAG="${NPM_TAG:-next}"
4+
TAG="${NPM_TAG:-}"
55

66
pkg_name="$(node -p "require('./package.json').name")"
77
pkg_version="$(node -p "require('./package.json').version")"
@@ -27,11 +27,15 @@ if ! grep -qiE '(E404|404 Not Found|code E404|is not in this registry)' "$view_l
2727
fi
2828

2929
args=(
30-
--tag "$TAG"
3130
--access public
3231
--provenance
3332
)
3433

34+
# Only add --tag if NPM_TAG is explicitly provided
35+
if [ -n "$TAG" ]; then
36+
args=( --tag "$TAG" "${args[@]}" )
37+
fi
38+
3539
log_file="$(mktemp)"
3640

3741
set +e

.github/workflows/publish_npm.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
branches: [ 'main' ]
66

77
env:
8-
NPM_TAG: 'next'
98

109
jobs:
1110
release:

packages/template-blank-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/template-blank-react",
3-
"version": "9.0.2",
3+
"version": "9.0.3",
44
"description": "Blank template for NativeScript apps using React.",
55
"author": "Jamie Birch <[email protected]>",
66
"main": "src/app.ts",

0 commit comments

Comments
 (0)