Skip to content

Commit 3d495d5

Browse files
committed
ci: update workflows config.
1 parent dc00f91 commit 3d495d5

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ on:
77
jobs:
88
build-deploy:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
id-token: write
1013
steps:
1114
- uses: actions/checkout@v3
1215
- uses: actions/setup-node@v3
1316
with:
14-
node-version: 16
17+
node-version: 18
1518
registry-url: 'https://registry.npmjs.org'
1619

1720
- name: Look Changelog
@@ -86,7 +89,7 @@ jobs:
8689
8790
${{ steps.changelog.outputs.changelog }}
8891
89-
- run: npm publish
92+
- run: npm publish --access public --provenance
9093
continue-on-error: true
9194
working-directory: packages/core
9295
env:

README-zh.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
</p>
66

77
<p align="center">
8+
<a href="https://jaywcjlove.github.io/#/sponsor">
9+
<img alt="Buy me a coffee" src="https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee">
10+
</a>
811
<a href="https://github.com/jaywcjlove/mocker-api/actions">
912
<img alt="Build & Deploy" src="https://github.com/jaywcjlove/mocker-api/workflows/Build%20and%20Deploy/badge.svg">
1013
</a>
@@ -20,9 +23,6 @@
2023
<a href="https://gitee.com/jaywcjlove/mocker-api">
2124
<img alt="Release" src="https://jaywcjlove.github.io/sb/ico/gitee.svg">
2225
</a>
23-
<a href="https://jaywcjlove.github.io/#/sponsor">
24-
<img alt="Buy me a coffee" src="https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee">
25-
</a>
2626
</p>
2727

2828
<p align="center">

packages/core/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77

88
<p align="center">
9+
<a href="https://jaywcjlove.github.io/#/sponsor">
10+
<img alt="Buy me a coffee" src="https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee">
11+
</a>
912
<a href="https://github.com/jaywcjlove/mocker-api/actions">
1013
<img alt="Build & Deploy" src="https://github.com/jaywcjlove/mocker-api/actions/workflows/ci.yml/badge.svg">
1114
</a>
@@ -24,9 +27,6 @@
2427
<a href="https://www.npmjs.com/package/mocker-api">
2528
<img alt="npm version" src="https://img.shields.io/npm/v/mocker-api.svg">
2629
</a>
27-
<a href="https://jaywcjlove.github.io/#/sponsor">
28-
<img alt="Buy me a coffee" src="https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee">
29-
</a>
3030
</p>
3131

3232
<p align="center">

0 commit comments

Comments
 (0)