Changed the framework so that apps out of the box come with the Bridgeman Accessible Web Components library (which if not used introduces little latency but if used provide large value)
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 34s
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 34s
This commit is contained in:
parent
7f9506279f
commit
5a18653c69
5 changed files with 36 additions and 11 deletions
|
|
@ -9,7 +9,8 @@ on:
|
|||
jobs:
|
||||
publish:
|
||||
runs-on: default
|
||||
#runs-on: self-hosted
|
||||
env:
|
||||
PRIVATE_NPM_REGISTRY: 'https://npm.pkg.bridgemanaccessible.ca'
|
||||
|
||||
steps:
|
||||
# Checkout the repository
|
||||
|
|
@ -36,7 +37,7 @@ jobs:
|
|||
# > Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file,
|
||||
# > and set up auth to read in from env.NODE_AUTH_TOKEN.
|
||||
# > Default: ''
|
||||
registry-url: 'https://npm.pkg.bridgemanaccessible.ca'
|
||||
registry-url: ${{ env.PRIVATE_NPM_REGISTRY }}
|
||||
|
||||
# Taken from [Repo README](https://github.com/actions/setup-node#readme)
|
||||
#
|
||||
|
|
@ -68,7 +69,7 @@ jobs:
|
|||
echo "Version: $VERSION"
|
||||
|
||||
NAME=$(node -p "require('./package.json').name")
|
||||
LATEST_VERSION=$(npm show $NAME version --registry https://npm.pkg.bridgemanaccessible.ca)
|
||||
LATEST_VERSION=$(npm show $NAME version --registry ${{ env.PRIVATE_NPM_REGISTRY }} 2>/dev/null || echo "0.0.0")
|
||||
echo "Latest version: $LATEST_VERSION"
|
||||
|
||||
if [ "$LATEST_VERSION" != "$VERSION" ]; then
|
||||
|
|
@ -109,4 +110,4 @@ jobs:
|
|||
cd dist
|
||||
|
||||
# Publish the package to the private NPM registry
|
||||
npm publish --registry http://npm.pkg.bridgemanaccessible.ca/
|
||||
npm publish --registry ${{ env.PRIVATE_NPM_REGISTRY }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue