mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
use OIDC NPM sign
This commit is contained in:
@@ -8,6 +8,10 @@ on:
|
|||||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: write
|
||||||
|
|
||||||
# on:
|
# on:
|
||||||
# push:
|
# push:
|
||||||
# branches:
|
# branches:
|
||||||
@@ -35,11 +39,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 22.x
|
node-version: 22.x
|
||||||
|
|
||||||
- name: Configure NPM token
|
# Ensure npm 11.5.1 or later is installed
|
||||||
env:
|
- name: Update npm
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
run: npm install -g npm@latest
|
||||||
run: |
|
|
||||||
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
|
# - name: Configure NPM token
|
||||||
|
# env:
|
||||||
|
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
# run: |
|
||||||
|
# npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
|
||||||
|
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user