Skip to content

Commit 671fa42

Browse files
author
Daniel Park
authored
fix: npm prune & add pr verification checks (#3277)
* wip: add wf * wip: add wf * wip: add wf * wip: add wf * wip: test clean git dir workflow * wip: fix deps and make link * wip: fix name * wip: undo change to install.js * wip: check git status * wip: use this version * wip: add missing npm-pack docs * wip: fix filename * wip: polish * wip: polish * wip: use pull request target only * wip: reset package lock
1 parent a3f50fd commit 671fa42

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed
+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: PR Validation Checks
2+
3+
on:
4+
# pull_request:
5+
# types:
6+
# - opened
7+
# - edited
8+
# - synchronize
9+
# branches:
10+
# - release-next
11+
# - latest
12+
pull_request_target:
13+
types:
14+
- opened
15+
- edited
16+
- synchronize
17+
branches:
18+
- release-next
19+
- latest
20+
21+
jobs:
22+
pr-title-format:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: amannn/[email protected]
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
29+
clean-working-dir:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Check out PR branch
33+
uses: actions/checkout@v2
34+
with:
35+
fetch-depth: 1
36+
ref: ${{ github.head_ref }}
37+
repository: ${{ github.repository }}
38+
token: ${{ secrets.GITHUB_TOKEN }}
39+
- name: Install dependencies
40+
run: |
41+
node . install
42+
- name: Check for diff
43+
run: |
44+
touch lib/utils/config/definitions.js
45+
npm run postsnap
46+
make prune

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ npm-debug.log
2727
/coverage
2828
/*.tgz
2929
/.editorconfig
30+
.vscode/

docs/content/commands/npm-pack.md

+9
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ commands that modify your local installation, eg, `install`, `update`,
2727
Note: This is NOT honored by other network related commands, eg `dist-tags`,
2828
`owner`, etc.
2929

30+
#### `json`
31+
32+
* Default: false
33+
* Type: Boolean
34+
35+
Whether or not to output JSON data, rather than the normal output.
36+
37+
Not supported by all npm commands.
38+
3039
#### `workspace`
3140

3241
* Default:

0 commit comments

Comments
 (0)