Skip to content

feat: rename package and make node-cache a peer dependency #14

feat: rename package and make node-cache a peer dependency

feat: rename package and make node-cache a peer dependency #14

Workflow file for this run

name: Pull Request
on:
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
name: Build and test with Node ${{ matrix.node-version }}
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'
scope: '@makerxstudio'
cache: 'npm'
cache-dependency-path: ./package-lock.json
# run npm ci preventing script access to npm auth token
- run: npm ci --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# allow scripts to run without npm auth token
- run: npm rebuild
- name: Lint commit messages
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: Build package
run: npm run build
- name: Run tests
run: npm test