generated from rdilweb/template-docusaurus-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (39 loc) · 1.12 KB
/
refreshLockFiles.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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.