Skip to content

feat: publish package to registry (DCP-1814) πŸŽ‰ #7

feat: publish package to registry (DCP-1814) πŸŽ‰

feat: publish package to registry (DCP-1814) πŸŽ‰ #7

Workflow file for this run

name: 'Continuous Integration'
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
checks: write
contents: read
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Check out repository πŸŽ‰
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup node env πŸ“¦
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
check-latest: true
cache: 'npm'
- name: Install dependencies πŸš€
run: npm ci --prefer-offline --no-audit
- name: Run linter(s) πŸ‘€
uses: wearerequired/lint-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
git_name: github-actions[bot]
git_email: github-actions[bot]@users.noreply.github.com
auto_fix: false
continue_on_error: false
neutral_check_on_warning: true
eslint: true
eslint_extensions: js,cjs,mjs,ts
prettier: true
prettier_extensions: js,cjs,mjs,ts
- name: Build the package πŸŽ‰
run: npm run build
- name: Run tests πŸ§ͺ
run: npm run test