From 98f55d69175b463cc7f36afd9e203e22e5c060c1 Mon Sep 17 00:00:00 2001 From: lisonge Date: Mon, 4 Sep 2023 19:25:02 +0800 Subject: [PATCH] chore: actions pnpm publish --- .github/workflows/release-please.yml | 4 ++-- .github/workflows/{build.yml => release.yml} | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) rename .github/workflows/{build.yml => release.yml} (88%) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 6f342afa..5c84bc70 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,3 +1,5 @@ +name: release-please + on: push: branches: @@ -7,8 +9,6 @@ permissions: contents: write pull-requests: write -name: release-please - jobs: release-please: runs-on: ubuntu-latest diff --git a/.github/workflows/build.yml b/.github/workflows/release.yml similarity index 88% rename from .github/workflows/build.yml rename to .github/workflows/release.yml index a5946fbf..fe8bd557 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/release.yml @@ -43,6 +43,11 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.ref }} + - name: Publish package + run: | + pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} + publish + - name: Log if: ${{ steps.commit.outcome != 'success' }} run: echo Nothing to commit.