Skip to content

Commit

Permalink
[actions] reuse common workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 8, 2021
1 parent e984340 commit fbd111c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/node-pretest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: 'Tests: pretest/posttest'

on: [pull_request, push]

jobs:
tests:
uses: ljharb/actions/.github/workflows/pretest.yml@main
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package-lock=false
allow-same-version=true
message=v%s
audit-level=high
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"scripts": {
"pretest": "npm run --silent lint",
"lint": "eslint --ext=js,mjs . 'bin/**'",
"posttest": "aud --production",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
},
Expand All @@ -33,6 +34,7 @@
},
"devDependencies": {
"@ljharb/eslint-config": "^20.0.0",
"aud": "^1.1.5",
"auto-changelog": "^2.3.0",
"eslint": "^8.4.1"
},
Expand Down

0 comments on commit fbd111c

Please sign in to comment.