Skip to content

Commit

Permalink
Update .env.example and node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IoannaMi committed Dec 21, 2021
1 parent 80e9c18 commit 1564cc5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 33 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ VUE_APP_AUTH_AUTHORITY=
VUE_APP_AUTH_ID=
VUE_APP_AUTH_TYPE=
VUE_APP_AUTH_SCOPE=

VUE_APP_STORIES_CONFIGURATION_URL=
VUE_APP_NEWS_CONFIGURATION_URL=
68 changes: 35 additions & 33 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ name: Node.js CI

on:
push:
branches: [ main ]
tags:
- '*'
branches: [main]
tags:
- "*"
pull_request:
branches: [ main ]
branches: [main]

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -22,31 +21,34 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Test
run: npm run test:unit
- name: Build
run: npm run build && zip -r dgds-frontend.zip dist
env:
VUE_APP_MAPBOX_TOKEN: ${{ secrets.VUE_APP_MAPBOX_TOKEN }}
VUE_APP_SERVER_URL: ${{ secrets.VUE_APP_SERVER_URL }}
VUE_APP_CATALOG_URL: ${{ secrets.VUE_APP_CATALOG_URL }}

VUE_APP_AUTH_AUTHORITY: ${{ secrets.VUE_APP_AUTH_AUTHORITY }}
VUE_APP_AUTH_ID: ${{ secrets.VUE_APP_AUTH_ID }}
VUE_APP_AUTH_TYPE: ${{ secrets.VUE_APP_AUTH_TYPE }}
VUE_APP_AUTH_SCOPE: ${{ secrets.VUE_APP_AUTH_SCOPE }}

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dgds-frontend.zip
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Test
run: npm run test:unit
- name: Build
run: npm run build && zip -r dgds-frontend.zip dist
env:
VUE_APP_MAPBOX_TOKEN: ${{ secrets.VUE_APP_MAPBOX_TOKEN }}
VUE_APP_SERVER_URL: ${{ secrets.VUE_APP_SERVER_URL }}
VUE_APP_CATALOG_URL: ${{ secrets.VUE_APP_CATALOG_URL }}

VUE_APP_AUTH_AUTHORITY: ${{ secrets.VUE_APP_AUTH_AUTHORITY }}
VUE_APP_AUTH_ID: ${{ secrets.VUE_APP_AUTH_ID }}
VUE_APP_AUTH_TYPE: ${{ secrets.VUE_APP_AUTH_TYPE }}
VUE_APP_AUTH_SCOPE: ${{ secrets.VUE_APP_AUTH_SCOPE }}

VUE_APP_STORIES_CONFIGURATION_URL: ${{ secrets.VUE_APP_STORIES_CONFIGURATION_URL }}
VUE_APP_NEWS_CONFIGURATION_URL: ${{ secrets.VUE_APP_NEWS_CONFIGURATION_URL }}

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dgds-frontend.zip

0 comments on commit 1564cc5

Please sign in to comment.