From ababdcee94b14e4f51f4fe7f71f2f1878e4f8ffc Mon Sep 17 00:00:00 2001 From: Netanel Cohen <34451523+netanelC@users.noreply.github.com> Date: Tue, 30 Dec 2025 11:19:26 +0200 Subject: [PATCH] ci: update GitHub Actions workflow for publishing --- .github/workflows/publish.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4860615..0e96f92 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,17 +1,19 @@ +name: publish + on: workflow_dispatch: release: types: [published] - + +permissions: + id-token: write # Required for OIDC + contents: read + jobs: publish: runs-on: ubuntu-latest - permissions: - contents: read steps: - - uses: actions/checkout@v4 - - name: Initialize npm environment + - uses: actions/checkout@v6 + - name: Init nodejs uses: ./.github/actions/init-npm - - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + - run: npm publish --access public