-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactored package linting, formatting, and publishing process
- Loading branch information
1 parent
9f985f4
commit 5570b53
Showing
31 changed files
with
3,309 additions
and
1,711 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"access": "public", | ||
"baseBranch": "main", | ||
"changelog": ["@changesets/changelog-github", { "repo": "friedemannsommer/lcov-parser" }], | ||
"commit": false, | ||
"ignore": [], | ||
"linked": [], | ||
"updateInternalDependencies": "patch" | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @friedemannsommer |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,54 +3,79 @@ name: CI | |
on: | ||
push: | ||
branches: | ||
- '*' | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
pull_request: null | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
compat: | ||
name: Check compatibility | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node_version: | ||
- 16 | ||
- 18 | ||
- 20 | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
cache: 'npm' | ||
node-version: ${{ matrix.node_version }} | ||
- run: npm ci --no-fund --no-audit | ||
- name: Run tests | ||
run: npm run test | ||
|
||
check: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- uses: actions/checkout@v4.1.1 | ||
- uses: actions/setup-node@v4.0.2 | ||
with: | ||
cache: 'npm' | ||
node-version: 20 | ||
- run: npm ci --no-fund --no-audit | ||
- name: formatting | ||
run: npm run fmt | ||
- name: lint | ||
run: npm run lint | ||
- name: typescript check | ||
run: npm run check | ||
- name: collect coverage | ||
- name: Run checks | ||
run: npm run check:ci | ||
- name: Collect coverage | ||
run: npm run coverage | ||
- name: upload coverage reports to Codecov | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v4 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
publish: | ||
permissions: | ||
contents: read | ||
id-token: write | ||
release: | ||
name: Release | ||
needs: | ||
- check | ||
permissions: | ||
contents: write | ||
id-token: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/') | ||
if: github.repository_owner == 'friedemannsommer' && github.ref_name == 'main' | ||
concurrency: '${{ github.workflow }}-${{ github.ref }}' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- uses: actions/checkout@v4.1.1 | ||
- uses: actions/setup-node@v4.0.2 | ||
with: | ||
cache: 'npm' | ||
node-version: 20 | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm ci --no-fund --no-audit | ||
- run: npm run build:dist | ||
- run: npm publish --access public --verbose --provenance | ||
- name: Create release PR or publish | ||
uses: changesets/[email protected] | ||
with: | ||
title: 'ci(changesets): package release' | ||
commit: 'ci(changesets): version package' | ||
publish: npm run release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.7.0/schema.json", | ||
"formatter": { | ||
"enabled": true, | ||
"formatWithErrors": false, | ||
"indentStyle": "space", | ||
"indentWidth": 4, | ||
"lineEnding": "lf", | ||
"lineWidth": 120, | ||
"attributePosition": "auto" | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"jsxQuoteStyle": "double", | ||
"quoteProperties": "asNeeded", | ||
"trailingComma": "none", | ||
"semicolons": "asNeeded", | ||
"arrowParentheses": "always", | ||
"bracketSpacing": true, | ||
"bracketSameLine": false, | ||
"quoteStyle": "single", | ||
"attributePosition": "auto" | ||
} | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"vcs": { | ||
"enabled": true, | ||
"clientKind": "git", | ||
"useIgnoreFile": true | ||
} | ||
} |
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
Oops, something went wrong.