From e9891d90bbfd3c36df500d789983e6d5e738eb05 Mon Sep 17 00:00:00 2001 From: Andreas Helmberger Date: Sat, 25 Oct 2025 07:37:16 +0200 Subject: [PATCH] EDU-1793 Switch NPM publishing to OIDC --- .github/workflows/publish.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 14db898..4dcf444 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,6 @@ on: push: tags: - 'v[0-9]+.[0-9]+.[0-9]+' - - 'v[0-9]+.[0-9]+.[0-9]+-*' jobs: publish: runs-on: ubuntu-24.04 @@ -21,6 +20,8 @@ jobs: with: node-version: "20.17.0" cache: "yarn" + - name: Update npm + run: npm install -g npm@11.6.2 - name: Install node modules run: yarn install --non-interactive --check-files --frozen-lockfile - name: Get tag from build environment @@ -32,8 +33,6 @@ jobs: run: npm version --allow-same-version --git-tag-version=false ${{steps.tag.outputs.version}} - name: Build run: ./node_modules/.bin/gulp build - - name: Authenticate with npm - run: npm set //registry.npmjs.org/:_authToken ${{secrets.NPM_AUTH_TOKEN}} - name: Publish to npm run: npm publish - name: Create Github release and tag JIRA issues