Commit 51ee81e9 authored by Andrew Hrdy's avatar Andrew Hrdy
Browse files

Using yarn included in the docker image instead of npm installing it.

parent ad9851c1
Pipeline #2509 passed with stage
in 1 minute and 46 seconds
...@@ -9,8 +9,7 @@ build: ...@@ -9,8 +9,7 @@ build:
variables: variables:
API_GET_FACILITIES: "'https://api.srct.gmu.edu/whatsopen/v2/facilities/'" API_GET_FACILITIES: "'https://api.srct.gmu.edu/whatsopen/v2/facilities/'"
script: script:
- npm install -g yarn - yarn
- yarn install
- CI=false API_GET_FACILITIES=$API_GET_FACILITIES npm run build - CI=false API_GET_FACILITIES=$API_GET_FACILITIES npm run build
artifacts: artifacts:
paths: paths:
...@@ -21,8 +20,7 @@ build_shopmason: ...@@ -21,8 +20,7 @@ build_shopmason:
variables: variables:
API_GET_FACILITIES: "'https://api.srct.gmu.edu/whatsopen/v2/facilities/?facility_classifier=shopmason'" API_GET_FACILITIES: "'https://api.srct.gmu.edu/whatsopen/v2/facilities/?facility_classifier=shopmason'"
script: script:
- npm install -g yarn - yarn
- yarn install
- CI=false API_GET_FACILITIES=$API_GET_FACILITIES npm run build - CI=false API_GET_FACILITIES=$API_GET_FACILITIES npm run build
artifacts: artifacts:
paths: paths:
......
...@@ -29,7 +29,7 @@ const Alert = ({alert}) => { ...@@ -29,7 +29,7 @@ const Alert = ({alert}) => {
return ( return (
<span className={'alert-message'}> <span className={'alert-message'}>
{alert.message.substring(0, links.index)} {alert.message.substring(0, links.index)}
<a href={links[0]} className={'alert-link'} target="_blank" rel="noopener">{links[0]}</a> <a href={links[0]} className={'alert-link'} target="_blank" rel="noopener noreferrer">{links[0]}</a>
{alert.message.substring(links.index + links[0].length)} {alert.message.substring(links.index + links[0].length)}
</span> </span>
); );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment