Skip to content

Commit

Permalink
ci: fix publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Jul 12, 2024
1 parent 72e6185 commit ba15455
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,6 @@ Cargo.lock
*.node
lib
artifacts
packages/core/index.js
packages/core/index.d.ts
packages/core/index.js.map

0 comments on commit ba15455

Please sign in to comment.