Skip to content

Get build working and run compile in the pipeline #2

Get build working and run compile in the pipeline

Get build working and run compile in the pipeline #2

Workflow file for this run

name: Compile
on: [push, pull_request]
jobs:
snapshot-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Get node version
id: node
run: |
echo "::set-output name=version::$(node -v)"
- name: Get node_modules cache
uses: actions/[email protected]
id: node_modules
with:
path: |
**/node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ steps.node.outputs.version }}
- name: Install modules
run: npm ci
- name: Generate tokens
run: npm run tokens:generate
- name: Run Compile
run: npm run compile