Skip to content

Commit ba15455

Browse files
committed
ci: fix publish script
1 parent 72e6185 commit ba15455

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/CI.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
4545
publish:
4646
name: Publish
47+
permissions:
48+
contents: write
49+
id-token: write
4750
if: "startsWith(github.event.head_commit.message, 'chore(release): publish')"
4851
runs-on: ubuntu-latest
4952
needs:
@@ -76,7 +79,8 @@ jobs:
7679
- name: Lerna publish
7780
run: |
7881
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
79-
npx lerna publish from-package --no-verify-access --yes
82+
npm config set provenance true
83+
pnpm publish -r --access public
8084
env:
8185
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8286
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,6 @@ Cargo.lock
168168
*.node
169169
lib
170170
artifacts
171+
packages/core/index.js
172+
packages/core/index.d.ts
173+
packages/core/index.js.map

0 commit comments

Comments
 (0)