From 1e02469d9a48811e2a107b3e38d3d7823a55ba60 Mon Sep 17 00:00:00 2001 From: "ANTOND." <71350868+antond15@users.noreply.github.com> Date: Fri, 20 Feb 2026 01:35:10 +0100 Subject: [PATCH] ci(create-release): use npm trusted publisher --- .github/workflows/release.yml | 15 +++++++++++---- package/package.json | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index df684b2..9cec340 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,10 @@ on: tags: - 'v*.*.*' +permissions: + id-token: write # Required for OIDC + contents: write + jobs: create-release: if: github.actor_id != 210085057 @@ -86,8 +90,11 @@ jobs: with: ref: ${{ github.ref_name }} + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '24' + - name: Publish package to npm registry - run: bun publish --access public - working-directory: package - env: - NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npm publish --access public diff --git a/package/package.json b/package/package.json index 3aa5bea..a652a1c 100644 --- a/package/package.json +++ b/package/package.json @@ -21,10 +21,10 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/communityox/ox_lib.git" + "url": "git+https://github.com/CommunityOx/ox_lib.git" }, "bugs": { - "url": "https://github.com/communityox/ox_lib/issues" + "url": "https://github.com/CommunityOx/ox_lib/issues" }, "license": "LGPL-3.0", "dependencies": {