Refresh Package Lock Files #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |