File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 22
22
registry-url : ' https://registry.npmjs.org'
23
23
- run : npm ci
24
24
- run : npm run build
25
+ env :
26
+ IS_PUBLISHING : ' YES'
25
27
- run : npm publish --access=public
26
28
env :
27
29
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- set -euxo pipefail
2
+ set -euo pipefail
3
3
4
4
# This script allows for emitting js and definitions from the typescript into
5
5
# the same import locations as the original files.
6
6
# When we adjust how we import the library we can move to a "dist" folder and
7
7
# explicit "exports".
8
8
9
+ if [ " ${IS_PUBLISHING:- } " != " YES" ]; then
10
+ echo " This script is intended to prepare the directory for publishing"
11
+ echo " and replaces files. If you only want to build the UI run \` npm run build-ui\` ."
12
+ echo " Otherwise set IS_PUBLISHING to \" YES\" "
13
+ exit 1
14
+ fi
15
+
16
+ set -x
17
+
9
18
REPO_ROOT=" $( git rev-parse --show-toplevel) "
10
19
cd " $REPO_ROOT "
11
20
You can’t perform that action at this time.
0 commit comments