Skip to content

Merge branch 'node-18' into staging #77

Merge branch 'node-18' into staging

Merge branch 'node-18' into staging #77

Workflow file for this run

name: Build & Upload
on:
push:
pull_request:
branches:
- master
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Checks & Build Test
runs-on: ubuntu-latest
steps:
- name: Repository checkout
uses: actions/checkout@v3
- name: Node.js setup
uses: actions/setup-node@v3
with:
node-version: '18'
- name: 📦 Install dependencies
run: yarn install
- name: Karma Test
run: yarn test
- name: 💨 Lint check
run: yarn lint
- name: 💅 Prettier check
run: yarn prettier:check
- name: 🏗️ Build app
run: yarn build --prod
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
deploy:
name: OneSky Upload
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: build
steps:
- name: Repository checkout
uses: actions/checkout@v3
- name: Node.js setup
uses: actions/setup-node@v3
with:
node-version: '18'
- name: 📦 Install dependencies
run: yarn install
- name: Upload to OneSky
run: yarn onesky:upload
env:
ONESKY_API_KEY: ${{ secrets.ONESKY_API_KEY }}
ONESKY_SECRET_KEY: ${{ secrets.ONESKY_SECRET_KEY }}