feat: initial commit

This commit is contained in:
Krise
2023-08-02 11:42:48 +00:00
parent 91ad3a16b6
commit 681e14ab9f
17 changed files with 2663 additions and 54785 deletions

View File

@@ -9,15 +9,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 18 ]
node: [ 18, 20 ]
name: Node ${{ matrix.node }} sample
name: Node ${{ matrix.node }} Release
steps:
- uses: actions/checkout@v3
- name: Run linting rules and tests
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run lint
- run: npm run test
cache: 'pnpm'
- run: pnpm install
- run: pnpm lint
- run: pnpm test

View File

@@ -5,20 +5,27 @@ on:
branches: [ main ]
jobs:
build:
check:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 16, 18, 20 ]
node: [ 18, 20 ]
name: Node ${{ matrix.node }} sample
name: Node ${{ matrix.node }} PR
steps:
- uses: actions/checkout@v3
- name: Run linting rules and tests
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run lint
- run: npm run test
cache: 'pnpm'
- run: pnpm install
name: install dependencies
- run: pnpm lint
name: linting
- run: pnpm test
name: testing
- name: 'Report Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2

View File

@@ -26,12 +26,13 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: npm clean-install
run: pnpm install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
run: pnpm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
#NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release