Refresh Package Lock Files #7
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 testsite | |
npm link docusaurus-json-schema-plugin --save | |
npm install --prefer-dedupe | |
npm dedupe | |
- name: Create Pull Request π€ | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
title: Update npm packages | |
body: | | |
This PR updates npm packages by removing package-lock.json files and reinstalling dependencies. |