npm-update-package 0.24.2 → 0.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -1
- package/dist/app.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ Package manager of your project
|
|
|
57
57
|
- required: false
|
|
58
58
|
- allowed values
|
|
59
59
|
- `npm`: npm
|
|
60
|
-
- `yarn`: Yarn
|
|
60
|
+
- `yarn`: Yarn
|
|
61
61
|
- default: `npm`
|
|
62
62
|
|
|
63
63
|
### `--pull-request-title`
|
|
@@ -183,6 +183,37 @@ jobs:
|
|
|
183
183
|
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
+
- [Use Yarn](https://github.com/npm-update-package/example-yarn)
|
|
187
|
+
|
|
188
|
+
```yaml
|
|
189
|
+
name: npm-update-package
|
|
190
|
+
on:
|
|
191
|
+
schedule:
|
|
192
|
+
- cron: '0 0 * * *'
|
|
193
|
+
jobs:
|
|
194
|
+
npm-update-package:
|
|
195
|
+
runs-on: ubuntu-latest
|
|
196
|
+
steps:
|
|
197
|
+
- uses: actions/checkout@v2
|
|
198
|
+
- uses: actions/setup-node@v2
|
|
199
|
+
- name: Generate token
|
|
200
|
+
id: generate_token
|
|
201
|
+
uses: tibdex/github-app-token@v1
|
|
202
|
+
with:
|
|
203
|
+
app_id: ${{ secrets.APP_ID }}
|
|
204
|
+
private_key: ${{ secrets.PRIVATE_KEY }}
|
|
205
|
+
- run: |
|
|
206
|
+
git config user.name $GIT_USER_NAME
|
|
207
|
+
git config user.email $GIT_USER_EMAIL
|
|
208
|
+
npx npm-update-package --github-token $GITHUB_TOKEN --package-manager yarn
|
|
209
|
+
env:
|
|
210
|
+
# TODO: Replace with your GitHub App's email
|
|
211
|
+
GIT_USER_EMAIL: 97396142+npm-update-package-bot[bot]@users.noreply.github.com
|
|
212
|
+
# TODO: Replace with your GitHub App's user name
|
|
213
|
+
GIT_USER_NAME: npm-update-package-bot[bot]
|
|
214
|
+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
|
|
215
|
+
```
|
|
216
|
+
|
|
186
217
|
## Flow
|
|
187
218
|
|
|
188
219
|
The following shows the process flow of npm-update-package.
|
package/dist/app.js
CHANGED