Skip to content

Refresh Package Lock Files #12

Refresh Package Lock Files

Refresh Package Lock Files #12

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.