generated from hugo-fixit/component-skeleton
-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 933 Bytes
/
update-lib.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
name: Copy translate.js from node_modules to assets/lib
on:
pull_request:
types:
- closed
paths:
- 'package.json'
- 'pnpm-lock.yaml'
jobs:
update:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Copy translate.js
run: pnpm cp
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_user_name: Cell[bot]
commit_user_email: lrhx@users.noreply.github.com
commit_author: Cell[bot] <lrhx@users.noreply.github.com>
commit_message: ':arrow_up: Chore(deps): update components version'