Skip to content

Commit

Permalink
deps: uninstall @nlib/changelog @nlib/lint-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gjbkz committed Sep 7, 2021
1 parent 5fcd8db commit 172c4b2
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 405 deletions.
2 changes: 1 addition & 1 deletion .githooks/commit-msg
@@ -1,2 +1,2 @@
#!/bin/sh
npx nlib-lint-commit --input $1
npx @nlib/lint-commit --input $1
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,20 @@
on:
release:
types: [published]
jobs:
Publish:
runs-on: ubuntu-latest
environment: deployment
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: npm
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm run build
- run: npx @nlib/cleanup-package-json --file package.json
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,32 @@
on: [push, pull_request]
jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: npm
- run: npm ci
- run: npm run lint
Test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [16.x, 14.x, 12.x]
runs-on: ${{ matrix.os }}
steps:
- run: git config --global core.autocrlf false
- run: git config --global core.eol lf
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm run build
- run: npx c8 npm test
- run: npx c8 report --reporter=text-lcov > coverage.lcov
- uses: codecov/codecov-action@v2
146 changes: 0 additions & 146 deletions .github/workflows/workflow.yml

This file was deleted.

0 comments on commit 172c4b2

Please sign in to comment.