From ba154554c2940a0f155555daa5a0b1a9049aadde Mon Sep 17 00:00:00 2001 From: LongYinan Date: Fri, 12 Jul 2024 23:40:43 +0800 Subject: [PATCH] ci: fix publish script --- .github/workflows/CI.yml | 6 +++++- .gitignore | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 761cd9205..2e83b77bd 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -44,6 +44,9 @@ jobs: publish: name: Publish + permissions: + contents: write + id-token: write if: "startsWith(github.event.head_commit.message, 'chore(release): publish')" runs-on: ubuntu-latest needs: @@ -76,7 +79,8 @@ jobs: - name: Lerna publish run: | echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - npx lerna publish from-package --no-verify-access --yes + npm config set provenance true + pnpm publish -r --access public env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 45fe562c2..71991ede0 100644 --- a/.gitignore +++ b/.gitignore @@ -168,3 +168,6 @@ Cargo.lock *.node lib artifacts +packages/core/index.js +packages/core/index.d.ts +packages/core/index.js.map \ No newline at end of file