Skip to content

Commit 418b1b8

Browse files
committed
ci: update workflows config.
1 parent 6c69a87 commit 418b1b8

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 7 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:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v6
15+
- uses: actions/setup-node@v6
1316
with:
14-
node-version: 16
17+
node-version: 24
1518
registry-url: 'https://registry.npmjs.org'
1619

1720
- run: npm install
@@ -29,7 +32,7 @@ jobs:
2932
uses: jaywcjlove/changelog-generator@main
3033

3134
- name: Deploy
32-
uses: peaceiris/actions-gh-pages@v3
35+
uses: peaceiris/actions-gh-pages@v4
3336
with:
3437
github_token: ${{ secrets.GITHUB_TOKEN }}
3538
publish_dir: ./typedoc
@@ -48,6 +51,7 @@ jobs:
4851
uses: ncipollo/release-action@v1
4952
if: steps.create_tag.outputs.successful
5053
with:
54+
allowUpdates: true
5155
token: ${{ secrets.GITHUB_TOKEN }}
5256
name: ${{ steps.create_tag.outputs.version }}
5357
tag: ${{ steps.create_tag.outputs.version }}
@@ -65,8 +69,6 @@ jobs:
6569
path: package.json
6670
unset: scripts,devDependencies
6771

68-
- run: npm publish
72+
- run: NODE_AUTH_TOKEN="" npm publish --access public --provenance
6973
name: 📦 @uiw/react-native-amap-geolocation publish to NPM
7074
continue-on-error: true
71-
env:
72-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)