Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Auto-merge patch updates only
if: steps.meta.outputs.update-type == 'version-update:semver-patch'
if: steps.meta.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/update-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Update Yarn packages

on:
push:
branches: [ APM-6800-enable-automated-patches ]
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
update-packages:
name: Update Yarn lockfile
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Install Node.js
uses: actions/setup-node@v7
with:
node-version: "22"

- name: Update Yarn packages
working-directory: user-restricted-separate-auth-tutorials/nhs-login/php
run: |
corepack enable
yarn install

Check warning on line 30 in .github/workflows/update-packages.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Lifecycle scripts are enabled by default in Yarn v2+.

See more on https://sonarcloud.io/project/issues?id=NHSDigital_hello-world-auth-examples&issues=AaGxKak2E7uBDFkTfVFQ&open=AaGxKak2E7uBDFkTfVFQ&pullRequest=296
yarn upgrade #NOSONAR

- name: Create pull request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 #v8.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
sign-commits: true
branch: APM-6800-update-yarn
base: main
delete-branch: true
add-paths: |
user-restricted-separate-auth-tutorials/nhs-login/php/yarn.lock
commit-message: "chore: update Yarn packages"
title: "chore: update Yarn packages"
body: "Updates JavaScript dependencies in user-restricted-separate-auth-tutorials/nhs-login/php/yarn.lock."
labels: dependencies, javascript, yarn
Loading