Skip to content

Commit

Permalink
chore: updated to modern conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Nov 13, 2022
1 parent d0ea796 commit dc10001
Show file tree
Hide file tree
Showing 9 changed files with 248 additions and 1,590 deletions.
13 changes: 13 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"reporter": [
"lcov",
"text-summary",
"html"
],
"exclude": [
"src/**/*-test.js",
"test/",
"thirdparty-wrappers/",
"vendor/"
]
}
36 changes: 10 additions & 26 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: Node.js CI
push:
branches:
- master
- alpha
- beta
- 'renovate/**'
- renovate/**
pull_request:
types:
- opened
Expand All @@ -18,32 +17,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Read .nvmrc
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
id: nvm
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- uses: bahmutov/npm-install@v1
node-version-file: .nvmrc
cache: npm
- run: npm clean-install
- run: npm test
- name: Upload coverage data to Codecov
run: 'npm run coverage:report'
- uses: codecov/codecov-action@v3
release:
needs: verify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Read .nvmrc
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
id: nvm
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- uses: bahmutov/npm-install@v1
- name: semantic-release
run: npx semantic-release
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
NPM_TOKEN: '${{ secrets.NPM_PUBLISH_TOKEN }}'
needs:
- verify
uses: form8ion/.github/.github/workflows/release-package.yml@master
secrets:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Release
'on':
push:
branches:
- alpha
jobs:
release:
uses: form8ion/.github/.github/workflows/release-package.yml@master
secrets:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm test
6 changes: 0 additions & 6 deletions .huskyrc.json

This file was deleted.

9 changes: 0 additions & 9 deletions .nycrc

This file was deleted.

Loading

0 comments on commit dc10001

Please sign in to comment.