Skip to content

Commit

Permalink
Merge pull request #652 from HonkingGoose/patch-1
Browse files Browse the repository at this point in the history
Rewrite readme
  • Loading branch information
Obi-Dann committed Jul 6, 2023
2 parents 18d54d9 + 2ce5208 commit b62f722
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Report updated dependencies

This Github Actions runs on changes to PR requests to detect and report changes made to dependencies.
Dependency lookups, change detections and fetching of release notes are all done by [Renovate Bot](https://github.com/renovatebot/renovate)
Dependency lookups, change detections and fetching of release notes are all done by [Renovate](https://github.com/renovatebot/renovate).

```yml
name: 'build-test'
Expand All @@ -16,11 +16,11 @@ jobs:
report-updated-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: AurorNZ/report-updated-dependencies@v1
```

or run conditionally
Or run conditionally:

```yml
name: 'build-test'
Expand All @@ -36,15 +36,15 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: AurorNZ/report-updated-dependencies@v1
```

## Publish to a distribution branch

Actions are run from GitHub repos so we will checkin the packed dist folder.
Actions are run from GitHub repositories, so we will check-in the packed `dist` folder.

Then run [ncc](https://github.com/zeit/ncc) and push the results:
Then run [`ncc`](https://github.com/zeit/ncc) and push the results:

```bash
$ npm run package
Expand All @@ -53,19 +53,21 @@ $ git commit -a -m "prod dependencies"
$ git push origin releases/v1
```

Note: We recommend using the `--license` option for ncc, which will create a license file for all of the production node modules used in your project.
> **Note**
> We recommend you use the `--license` option when running the `ncc` command: this creates a license file for all of the production node modules used in your project.
Your action is now published! :rocket:

See the [versioning documentation](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md)
See the [versioning documentation](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md).

## Debugging

- Create a pull request, ideally with commits that update dependencies
- Once the test run is finished, rerun it with debuggin enabled
- Take the JSON context from debug logs (after `ReportUpdatedDependencies context that can be used for testing:`) and save it as test-context.json into the root of this repository
- Once the test run is finished, enable debugging
- Run the test again with debugging enabled
- Take the JSON context from debug logs (after `ReportUpdatedDependencies context that can be used for testing:`) and save it as `test-context.json` into the root of this repository
- Add the following code to `.env` file
```
INPUT_TOKEN=<YOUR_GITHUB_TOKEN>
```
- Hit F5 in VSCode to start debugging
- Use the F5 shortcut key in VSCode to start debugging

0 comments on commit b62f722

Please sign in to comment.