diff --git a/.travis.yml b/.travis.yml index 45ecd29..1cad51a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,7 @@ before_install: script: - yarn lint - yarn test -- NODE_ENV=$([ "$TRAVIS_BRANCH" == "master" ] && echo "production" || echo "staging") - yarn build +- NODE_ENV=$([ "$TRAVIS_BRANCH" == "master" ] && echo "production" || echo "staging") BUILD_ID=${TRAVIS_COMMIT:0:8} yarn build deploy: - provider: gae skip_cleanup: true diff --git a/modules/client/browse/App.js b/modules/client/browse/App.js index dcf8173..7305200 100644 --- a/modules/client/browse/App.js +++ b/modules/client/browse/App.js @@ -11,6 +11,8 @@ import { TwitterIcon, GitHubIcon } from './Icons.js'; import SelectDownArrow from './images/SelectDownArrow.png'; +const buildId = process.env.BUILD_ID; + const globalStyles = css` html { box-sizing: border-box; @@ -382,7 +384,12 @@ export default function App({ justifyContent: 'space-between' }} > -
© {new Date().getFullYear()} UNPKG
++ Build: {buildId} +
++ © {new Date().getFullYear()} UNPKG +