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.
Files changed (3) hide show
  1. package/README.md +32 -1
  2. package/dist/app.js +1 -1
  3. 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 (**It has not been tested yet.**)
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
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.app = void 0;
4
4
  exports.app = {
5
5
  name: 'npm-update-package',
6
- version: '0.24.2',
6
+ version: '0.24.3',
7
7
  web: 'https://github.com/npm-update-package/npm-update-package'
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-update-package",
3
- "version": "0.24.2",
3
+ "version": "0.24.3",
4
4
  "description": "CLI tool for creating pull requests to update npm packages",
5
5
  "scripts": {
6
6
  "build": "tsc --project tsconfig.build.json",