Skip to content

Update package.json task presenter version #598

Update package.json task presenter version

Update package.json task presenter version #598

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Bloomberg pybossa-default-theme CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout repository and submodules recursively
uses: actions/checkout@v2
with:
submodules: recursive
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: static/src/yarn.lock
- name: Pre setup
run: |
npm cache clean --force
rm -rf ~/.npm
TASK_PRESENTER_VERSION=$(node -p "require('./package.json').devDependencies['@dtwebservices/task-presenter-components']")
npm install https://s3.amazonaws.com/cf-s3uploads/pybv/${TASK_PRESENTER_VERSION}/task-presenter-components.tgz
working-directory: static/src
- run: yarn webpack
working-directory: static/src
- run: yarn test
working-directory: static/src
- run: yarn lint
working-directory: static/src