Skip to content

Commit ac4fd14

Browse files
committed
ci: 修改发布流程
1 parent 4409a57 commit ac4fd14

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
- name: Build
3030
run: pnpm build -a
3131

32+
- name: Set .npmrc for publish
33+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./.npmrc
34+
3235
- name: Publish
3336
run: pnpm publish:ci
34-
env:
35-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ jobs:
4040
with:
4141
tag_name: ${{ github.ref }}
4242
release_name: Release ${{ github.ref }}
43-
body: |
44-
Please refer to [CHANGELOG.md](https://github.com/axios-miniprogram/core/blob/main/CHANGELOG.md) for details.
43+
body: 'CHANGELOG.md'
4544
prerelease: ${{ steps.prerelease.outputs.result }}
4645

4746
- name: Build Release Asset

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shell-emulator=true

scripts/release.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ function createReleases() {
9595
['patch'],
9696
['minor'],
9797
['major'],
98-
['prepatch', 'alpha'],
99-
['preminor', 'alpha'],
100-
['premajor', 'alpha'],
101-
['prerelease', 'alpha'],
98+
['prepatch', 'beta'],
99+
['preminor', 'beta'],
100+
['premajor', 'beta'],
101+
['prerelease', 'beta'],
102102
];
103103
const releases: string[] = [];
104104
for (const [type, preid] of types) {

0 commit comments

Comments
 (0)