|
1 |
| -name: Generate Yarn lockfile |
| 1 | +name: Update dependencies and generate new lockfile |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | workflow_dispatch:
|
|
21 | 21 | run: curl -fsSL https://github.com/code-server-boilerplates/charts/raw/main/scripts/setup-ci | bash
|
22 | 22 | - name: Update npmjs
|
23 | 23 | run: npm i -g npm@latest
|
24 |
| - - name: Setup Yarn Berry |
25 |
| - shell: bash |
26 |
| - run: | |
27 |
| - git switch -c update-lockfiles-$GITHUB_RUN_ID origin/master |
28 | 24 | - name: Run install CI
|
29 |
| - run: npm ci |
| 25 | + run: npm install && npm ci || true |
30 | 26 | - name: Attempt to upgrade dependencies
|
31 | 27 | run: |
|
32 | 28 | echo "::addgroup::List outdated packages"
|
|
44 | 40 | git status -s
|
45 | 41 | echo "::endgroup::"
|
46 | 42 | sleep 30
|
47 |
| - - name: Commit changes |
| 43 | + - name: Generate pull request |
| 44 | + uses: peter-evans/create-pull-request@v3 |
| 45 | + id: cpr |
| 46 | + with: |
| 47 | + token: ${{ secrets.GH_SERVICE_ACCOUNT_API_KEY }} |
| 48 | + author: Recap Time Bot <releases@madebythepins.tk> |
| 49 | + commiter: Recap Time Bot <releases@madebythepins.tk> |
| 50 | + signoff: true |
| 51 | + commit-message: Update npm dependencies and lockfile |
| 52 | + branch: update-dependencies-npmjs |
| 53 | + labels: | |
| 54 | + packages/nodejs-npm |
| 55 | + dependencies |
| 56 | + reviewers: ${{ github.actor }} |
| 57 | + assignees: |
| 58 | + title: Update npmjs lockfiles and dependencies |
| 59 | + description: | |
| 60 | + Hey, ${{ github.actor }}. |
| 61 | +
|
| 62 | + Your PR has been successfully generated to update dependencies and lockfile. Please wait while Vercel is doing an build for our website to ensure there will be no breaking changes to be merged to production. |
| 63 | +
|
| 64 | + When the build status goes green, approve and add `Ready to Ship` label to automagically merge. |
| 65 | + Before merging, make sure you read the changelog of these updated packages before proceeding. |
| 66 | +
|
| 67 | + --- |
| 68 | +
|
| 69 | + _This PR is generated using [this GitHub action](https://github.com/peter-evans/create-pull-request), btw._ |
| 70 | + - name: Extract PR link |
48 | 71 | run: |
|
49 |
| - git commit -m "Updated npmjs lockfiles and dependencies" --signoff |
50 |
| - git push origin update-lockfiles-$GITHUB_RUN_ID |
| 72 | + echo "An PR has been generated to update npm dependencies. Go to ${{ steps.cpr.outputs.pull-request-url }} to complete the merge request workflow." |
0 commit comments