Merge pull request #1061 from data-for-change/remove_road_n12_1052 #1137
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches-ignore: | |
- dev | |
- master | |
jobs: | |
build_and_preview: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install | |
- run: npm run build:staging --if-present | |
- run: npm run lint | |
# todo: add unit tests | |
- name: Deploy | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ANYWAY_NEWSFLASH_INFOGRAPHICS }}' | |
channelId: preview | |
projectId: anyway-newsflash-infographics | |
env: | |
FIREBASE_CLI_PREVIEWS: hostingchannels | |
CI: true |