From c98d9b97d8de8257e3ac6506e1e31f71f4b4e9e0 Mon Sep 17 00:00:00 2001 From: Netanel Cohen <34451523+netanelC@users.noreply.github.com> Date: Tue, 30 Dec 2025 11:13:47 +0200 Subject: [PATCH] ci: update GitHub Actions workflow for publishing --- .github/workflows/publish.yaml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 693aee5..0e96f92 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -2,23 +2,18 @@ name: publish on: workflow_dispatch: - release: + release: types: [published] +permissions: + id-token: write # Required for OIDC + contents: read + jobs: publish: runs-on: ubuntu-latest - permissions: - contents: read - packages: write # allow GITHUB_TOKEN to publish packages steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Init nodejs uses: ./.github/actions/init-npm - with: - node-version: 20.x - - name: Copy resources - run: npm run copy - - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} + - run: npm publish --access public