Skip to content

Commit

Permalink
update readme to use v3 for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Mar 27, 2023
1 parent bcf60d8 commit d4548d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: mainmatter/ember-asset-size-action@v2
- uses: mainmatter/ember-asset-size-action@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
```
Expand All @@ -30,7 +30,7 @@ By default `ember-asset-size-action` will update the existing comment when the P
If you want to disable this behaviour and have the action create a new comment every time, you can pass the input `update-comments` with a value `false`.

```yaml
- uses: mainmatter/ember-asset-size-action@v2
- uses: mainmatter/ember-asset-size-action@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
update-comments: "no" # apparently booleans don't work as expected
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: mainmatter/ember-asset-size-action@v2
- uses: mainmatter/ember-asset-size-action@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
```
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
with:
fetch-depth: 0
- run: echo //registry.npmjs.org/:_authToken=$\{NPM_TOKEN\} >> .npmrc
- uses: mainmatter/ember-asset-size-action@v2
- uses: mainmatter/ember-asset-size-action@v3
env:
NPM_TOKEN: "${{ secrets.YOUR_REPO_NPM_TOKEN }}"
with:
Expand All @@ -100,7 +100,7 @@ jobs:
If you'd like the PR comment to display the diff between the total asset sizes (JS & CSS) for the PR's build against the base branch, you can use the `show-total-size-diff` option:

```yaml
- uses: simplabs/ember-asset-size-action@v2
- uses: simplabs/ember-asset-size-action@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
show-total-size-diff: "yes"
Expand Down

0 comments on commit d4548d8

Please sign in to comment.