chore: release v0.1.0 #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |