Skip to content

Refresh Package Lock Files #13

Refresh Package Lock Files

Refresh Package Lock Files #13

name: Refresh Package Lock Files
on:
workflow_dispatch:
jobs:
update_packages:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v4
- name: Setup Node.js ✨
uses: actions/[email protected]
with:
node-version: "lts/*"
- name: 🤖 Remove package-lock.json files
run: |
find . -name "package-lock.json" -delete
- name: 💻 Install npm packages
run: npm install
- name: Build lib 🤖
run: |
npm run build
- name: Link lib 🔗
run: |
npm link
- name: Install website 💻
run: |
cd documentation
npm link fhir-dosage-utils --save
npm install --prefer-dedupe
npm dedupe
- name: Create Pull Request 🤖
uses: peter-evans/create-pull-request@v7
with:
title: Update npm packages
body: |
This PR updates npm packages by removing package-lock.json files and reinstalling dependencies.