Merge pull request #6 from Mockline/renovate/hrcd-eslint-config-1.x #27
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: ci-edge | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
id-token: write | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
with: | |
fetch-depth: 0 | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: 📦 Install dependencies | |
run: bun install | |
- name: 💅 Lint code | |
run: bun run lint | |
- name: 🧪 Run tests | |
run: bun run test | |
- uses: dorny/paths-filter@v3 | |
id: changes | |
with: | |
filters: | | |
src: | |
- 'src/**' | |
- 'package.json' | |
- name: 🚀 Release Edge | |
if: github.event_name == 'push' && steps.changes.outputs.src == 'true' | |
run: ./scripts/release-edge.sh | |
env: | |
NPM_TOKEN: ${{secrets.NPM_TOKEN}} |