Skip to content

fix

fix #1

Workflow file for this run

name: CI/CD
on:
push:
branches:
- '**'
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: '20.12.0'
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Install and test
run: |
npm install
npm test
# publish:
# runs-on: ubuntu-latest
# needs: [ tests ]
# if: github.ref == 'refs/heads/main'
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v2
# with:
# node-version: '20.12.0'
# - name: Build
# run: npm run build
# - name: Publish
# run: