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 2222 registry-url : ' https://registry.npmjs.org'
2323 - run : npm ci
2424 - run : npm run build
25+ env :
26+ IS_PUBLISHING : ' YES'
2527 - run : npm publish --access=public
2628 env :
2729 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- set -euxo pipefail
2+ set -euo pipefail
33
44# This script allows for emitting js and definitions from the typescript into
55# the same import locations as the original files.
66# When we adjust how we import the library we can move to a "dist" folder and
77# explicit "exports".
88
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+
918REPO_ROOT=" $( git rev-parse --show-toplevel) "
1019cd " $REPO_ROOT "
1120
You can’t perform that action at this time.
0 commit comments