Skip to content

Commit

Permalink
fix: npm prune & add pr verification checks (#3277)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
gijun19 authored May 23, 2021
1 parent a3f50fd commit 671fa42
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/pr-validation-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: PR Validation Checks

on:
# pull_request:
# types:
# - opened
# - edited
# - synchronize
# branches:
# - release-next
# - latest
pull_request_target:
types:
- opened
- edited
- synchronize
branches:
- release-next
- latest

jobs:
pr-title-format:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v3.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

clean-working-dir:
runs-on: ubuntu-latest
steps:
- name: Check out PR branch
uses: actions/checkout@v2
with:
fetch-depth: 1
ref: ${{ github.head_ref }}
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: |
node . install
- name: Check for diff
run: |
touch lib/utils/config/definitions.js
npm run postsnap
make prune
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ npm-debug.log
/coverage
/*.tgz
/.editorconfig
.vscode/
9 changes: 9 additions & 0 deletions docs/content/commands/npm-pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ commands that modify your local installation, eg, `install`, `update`,
Note: This is NOT honored by other network related commands, eg `dist-tags`,
`owner`, etc.

#### `json`

* Default: false
* Type: Boolean

Whether or not to output JSON data, rather than the normal output.

Not supported by all npm commands.

#### `workspace`

* Default:
Expand Down

0 comments on commit 671fa42

Please sign in to comment.