Skip to content

Commit 5ae1626

Browse files
committed
✨ feat(config): Test
1 parent f5be0d6 commit 5ae1626

3 files changed

Lines changed: 23 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,28 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 18.x
18+
cache: pnpm
19+
- name: Get pnpm store directory
20+
run: |
21+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
22+
- name: Setup pnpm cache
23+
uses: actions/cache@v4
24+
with:
25+
path: ${{ env.STORE_PATH }}
26+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
27+
restore-keys: |
28+
${{ runner.os }}-pnpm-store-
29+
- name: Install
30+
run: |
31+
pnpm Install
32+
pnpm build
1533
- uses: ./
1634
id: commit-comment
1735
with:
1836
token: ${{ secrets.GITHUB_TOKEN }}
1937
body: |
2038
Website preview for commit ${GITHUB_SHA} at ${GITHUB_RUN_ATTEMPT}
21-
- [Preview](https://h7ml.github.io/commit-comment)
22-
- [Source code](https://github.com/h7ml/commit-comment)
39+
- [Source code](https://github.com/dext7r/commit-comment)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This GitHub Action allows you to automatically create a commit comment on a pull
1616

1717
```yaml
1818
- name: Commit Comment
19-
uses: dext7r/commit-comment@v1.0.0
19+
uses: dext7r/commit-comment-action@v1.0.0
2020
with:
2121
token: ${{ secrets.GITHUB_TOKEN }}
2222
body: 'This is a test comment.'
@@ -49,7 +49,7 @@ jobs:
4949
5050
steps:
5151
- name: Commit Comment
52-
uses: dext7r/commit-comment@v1.0.0
52+
uses: dext7r/commit-comment-action@v1.0.0
5353
with:
5454
token: ${{ secrets.GITHUB_TOKEN }}
5555
body: 'Hello from GitHub Action!'

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'commit-comment'
1+
name: 'commit-comment-action'
22
description: 'A GitHub Action to commit comment'
33
author: 'h7ml <h7ml@qq.com>'
44

@@ -22,5 +22,5 @@ outputs:
2222
description: The ID of the comment that was created.
2323

2424
runs:
25-
using: node16
25+
using: node18
2626
main: './dist/lib/index.js'

0 commit comments

Comments
 (0)