From a59859341f3b1c4a792dde79e11e3f153fac78c1 Mon Sep 17 00:00:00 2001 From: Haseeb Ahmad Date: Wed, 24 Jun 2026 11:59:25 +0200 Subject: [PATCH] CLOUDPLAT-3162: add npm OIDC publish workflow https://mapbox.atlassian.net/browse/CLOUDPLAT-3162 --- .github/workflows/npm-release.yml | 15 +++++++++++++++ package.json | 5 ++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/npm-release.yml diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml new file mode 100644 index 00000000..ba2ea448 --- /dev/null +++ b/.github/workflows/npm-release.yml @@ -0,0 +1,15 @@ +name: NPM release + +on: + workflow_dispatch: + +jobs: + npm-release: + uses: mapbox/gha-public/.github/workflows/workflow-npm-oidc-publish.yml@main + permissions: + id-token: write + contents: write + with: + create-github-release: true + environment: npm-release + run-tests: false diff --git a/package.json b/package.json index 8fa9d3f4..9f2a2b03 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@mapbox/node-pre-gyp", "description": "Node.js native addon binary install tool", - "version": "2.0.4-pre.0", + "version": "2.0.4-pre.1", "keywords": [ "native", "addon", @@ -65,5 +65,8 @@ }, "overrides": { "js-yaml": "^3.14.2" + }, + "publishConfig": { + "access": "public" } }