feat: initial commit
This commit is contained in:
11
.github/workflows/main.yml
vendored
11
.github/workflows/main.yml
vendored
@@ -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
|
||||
|
||||
19
.github/workflows/pr.yml
vendored
19
.github/workflows/pr.yml
vendored
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user