From b0cbf93090d3a72a5c1c9d864ddc9c801eaf51d9 Mon Sep 17 00:00:00 2001 From: cycleccc <2991205548@qq.com> Date: Tue, 24 Sep 2024 22:12:46 +0800 Subject: [PATCH 1/3] chore(npm): add npmrc config --- .npmrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..5660f81af --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmjs.org/ \ No newline at end of file From 21d430cd8c4ff01de4073f3df2e315d9f56941fa Mon Sep 17 00:00:00 2001 From: cycleccc <2991205548@qq.com> Date: Tue, 24 Sep 2024 22:31:42 +0800 Subject: [PATCH 2/3] chore(publish): modify publish command --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a25a32dc1..26920e0c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,7 @@ jobs: uses: changesets/action@v1 with: createGithubReleases: false - publish: yarn publish + publish: yarn changeset publish title: ${{ github.ref_name == 'master' && 'Publish a new stable version' || 'Publish a new pre-release version' }} commit: >- ${{ github.ref_name == 'master' && 'chore(release): publish a new release version' || 'chore(release): publish a new pre-release version' }} From a3a5b33c79ac1e24688d85bc093220514e2af685 Mon Sep 17 00:00:00 2001 From: cycleccc <2991205548@qq.com> Date: Tue, 24 Sep 2024 22:35:12 +0800 Subject: [PATCH 3/3] chore(publish): modify publish command public --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 26920e0c5..6797d25d2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,7 @@ jobs: uses: changesets/action@v1 with: createGithubReleases: false - publish: yarn changeset publish + publish: yarn changeset publish --access=public title: ${{ github.ref_name == 'master' && 'Publish a new stable version' || 'Publish a new pre-release version' }} commit: >- ${{ github.ref_name == 'master' && 'chore(release): publish a new release version' || 'chore(release): publish a new pre-release version' }}