Skip to content

Commit 1e802e3

Browse files
committed
chore: 适配 OIDC 进行自动发布
1 parent 52d06b2 commit 1e802e3

4 files changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ on:
1010
- release
1111
# release:
1212
# types: [published]
13-
13+
permissions:
14+
id-token: write # Required for OIDC
15+
contents: write
1416
jobs:
1517
test:
1618
runs-on: ubuntu-latest
@@ -19,7 +21,7 @@ jobs:
1921
- uses: pnpm/action-setup@v4
2022
- uses: actions/setup-node@v4
2123
with:
22-
node-version: '22.x'
24+
node-version: '24.x'
2325
cache: pnpm
2426

2527
- run: pnpm i --frozen-lockfile
@@ -53,10 +55,9 @@ jobs:
5355

5456
- run: pnpm i --frozen-lockfile
5557
- run: pnpm build
58+
- run: npm install -g npm@latest
5659
- name: Publish to npm
57-
run: npm publish --provenance --access public
58-
env:
59-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
60+
run: npm publish --access public
6061

6162
- name: 获取 commit message
6263
id: commit

.github/workflows/update-data.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Update data
22

33
on:
4-
# 允许在界面上手动触发
4+
# 允许在 Github Action 界面上手动触发
55
workflow_dispatch:
66

77
permissions:

CHANGELOG-CN.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
英文 changelog 内容请访问 [CHANGELOG](CHANGELOG.md)
44

5+
## [3.5.1](https://github.com/TerryZ/v-region/compare/v3.5.0...v3.5.1) (2026-03-27)
6+
7+
### 新特性
8+
9+
- 行政区划数据更新至 `2026年03月25日` 版本
10+
511
## [3.5.0](https://github.com/TerryZ/v-region/compare/v3.4.1...v3.5.0) (2025-10-11)
612

713
### 新特性

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Please refer to [CHANGELOG-CN](CHANGELOG-CN.md) for Chinese changelog
44

5+
## [3.5.1](https://github.com/TerryZ/v-region/compare/v3.5.0...v3.5.1) (2026-03-27)
6+
7+
### Features
8+
9+
- Administrative division data updated to `2026-03-25`
10+
511
## [3.5.0](https://github.com/TerryZ/v-region/compare/v3.4.1...v3.5.0) (2025-10-11)
612

713
### Features

0 commit comments

Comments
 (0)