Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Update to use new release process (#121)
Browse files Browse the repository at this point in the history
* Update to use new release process

* Update app.json

* Fix jest tests

* Update CHANGELOG.md

Co-authored-by: Manuel,Ryan <[email protected]>
Co-authored-by: Matt Henkes <[email protected]>
  • Loading branch information
3 people authored Jan 8, 2021
1 parent f8e4925 commit 08bbc3a
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 149 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ jobs:
- stage: deploy
script:
- rm -rf ./travis-build
# add auth token to .npmrc for lerna publish
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
# Publish to npm and push tags to github based on output written to file
- node ./scripts/release/release.js
- npx terra release
before_deploy:
# Build again for deployment because we need the Public path to be updated.
- TERRA_DEV_SITE_NEW_RELIC_LICENSE_KEY='c494ac44c8' TERRA_DEV_SITE_NEW_RELIC_APPLICATION_ID='141260567' TERRA_DEV_SITE_PUBLIC_PATH='/terra-application/' npm run compile:prod
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Changed
* Updated to use terra-open-source-scripts to release the project

## 1.41.0 - (November 17, 2020)

* Added
Expand Down
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This project is hosted on NPM. You can find the terra packages [here][project-u

Below is a guide for releasing packages:

1. Update the versions of the component and change log via `npm run version:<major, minor, patch>`
1. Update the versions of the component and change log via `npm run prepare-for-release`
2. Create a Release PR, Get approvals
3. Merge PR to `main`
4. Watch main to ensure releases get pushed to npm and tagged in github appropriately
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"size": "free"
}
},
"stack": "heroku-16",
"stack": "heroku-20",
"addons": [],
"buildpacks": []
}
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"lint:scss": "stylelint src/**/*.scss",
"precompile": "rm -rf lib",
"prepare": "npm run compile",
"prepare-for-release": "terra prepare-for-release",
"start": "tt-serve",
"start-prod": "tt-serve -p",
"start-heroku": "tt-serve-static --port $PORT --site './build' ",
Expand All @@ -92,14 +93,12 @@
"wdio-locale": "LOCALE=de wdio",
"wdio-lowlight": "THEME=clinical-lowlight-theme wdio",
"wdio-fusion": "THEME=orion-fusion-theme wdio",
"wdio": "npm run wdio-default && npm run wdio-locale && npm run wdio-lowlight && npm run wdio-fusion",
"version:major": "npm --no-git-tag-version version major",
"version:minor": "npm --no-git-tag-version version minor",
"version:patch": "npm --no-git-tag-version version patch",
"postversion": "node ./scripts/changelog-updater/index.js"
"wdio": "npm run wdio-default && npm run wdio-locale && npm run wdio-lowlight && npm run wdio-fusion"
},
"dependencies": {
"@cerner/terra-cli": "^1.0.0",
"@cerner/terra-docs": "^1.0.0",
"@cerner/terra-open-source-scripts": "^1.0.1",
"classnames": "^2.2.5",
"eventemitter3": "^4.0.4",
"mutationobserver-shim": "0.3.3",
Expand Down
59 changes: 0 additions & 59 deletions scripts/changelog-updater/index.js

This file was deleted.

52 changes: 0 additions & 52 deletions scripts/release/release.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ exports[`useNotificationBanners Nested Notification Banner Provider registers no
<strong
class="title"
>
<span>
Error.
</span>
Error.
</strong>
</div>
</div>
Expand Down Expand Up @@ -130,9 +128,7 @@ exports[`useNotificationBanners Nested Notification Banner Provider registers no
<strong
class="title"
>
<span>
Error.
</span>
Error.
</strong>
</div>
</div>
Expand Down Expand Up @@ -184,9 +180,7 @@ exports[`useNotificationBanners Nested Notification Banner Provider registers no
<strong
class="title"
>
<span>
Error.
</span>
Error.
</strong>
</div>
</div>
Expand Down Expand Up @@ -245,9 +239,7 @@ exports[`useNotificationBanners Nested Notification Banner Provider unregisters
<strong
class="title"
>
<span>
Error.
</span>
Error.
</strong>
</div>
</div>
Expand Down Expand Up @@ -299,9 +291,7 @@ exports[`useNotificationBanners Nested Notification Banner Provider unregisters
<strong
class="title"
>
<span>
Error.
</span>
Error.
</strong>
</div>
</div>
Expand Down Expand Up @@ -370,9 +360,7 @@ exports[`useNotificationBanners Nested Notification Banner Provider unregisters
<strong
class="title"
>
<span>
Error.
</span>
Error.
</strong>
</div>
</div>
Expand Down Expand Up @@ -471,9 +459,7 @@ exports[`useNotificationBanners NotificationBannerProvider.registerNotificationB
<strong
class="title"
>
<span>
Error.
</span>
Error.
</strong>
</div>
</div>
Expand Down Expand Up @@ -531,9 +517,7 @@ exports[`useNotificationBanners NotificationBannerProvider.unregisterNotificatio
<strong
class="title"
>
<span>
Error.
</span>
Error.
</strong>
</div>
</div>
Expand Down Expand Up @@ -617,9 +601,7 @@ exports[`useNotificationBanners renders with children that has a an banner 1`] =
<strong
class="title"
>
<span>
Error.
</span>
Error.
</strong>
</div>
</div>
Expand Down

0 comments on commit 08bbc3a

Please sign in to comment.