Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Check commit message and create tag
run: |
COMMIT_MSG=$(git log -1 --pretty=%B)

if [[ $COMMIT_MSG =~ ^(v[0-9]+\.[0-9]+\.[0-9]+) ]]; then
TAG_NAME="${BASH_REMATCH[1]}"
git config user.name "github-actions[bot]"
Expand All @@ -34,6 +34,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-npm:
permissions:
contents: read
id-token: write # to enable use of OIDC for npm provenance
runs-on: ubuntu-latest
needs: [auto-tag]
if: github.event_name == 'workflow_dispatch' || success()
Expand All @@ -46,6 +49,7 @@ jobs:
with:
node-version: 24
cache: pnpm
registry-url: "https://registry.npmjs.org/"

- name: Install Lerna Lite
run: pnpm add -g @lerna-lite/cli @lerna-lite/publish
Expand All @@ -56,9 +60,6 @@ jobs:
- name: Build
run: npm run build

- name: NPM Login
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Publish to NPM
run: lerna publish from-package --yes

Expand Down