Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 26f62830d9 | |||
| 88958232f2 | |||
| 5ddd93afcc | |||
| abe20e7d8c |
14
.github/workflows/dependency-review.yaml
vendored
14
.github/workflows/dependency-review.yaml
vendored
@@ -4,6 +4,17 @@ name: Dependency Review
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
base_ref:
|
||||||
|
description: 'The base ref for the dependency review'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: 'next'
|
||||||
|
head_ref:
|
||||||
|
description: 'The head ref for the dependency review'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: 'next'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -19,3 +30,6 @@ jobs:
|
|||||||
|
|
||||||
- name: 🚀 Dependency Review
|
- name: 🚀 Dependency Review
|
||||||
uses: actions/dependency-review-action@v4
|
uses: actions/dependency-review-action@v4
|
||||||
|
with:
|
||||||
|
base-ref: ${{ inputs.base_ref }}
|
||||||
|
head-ref: ${{ inputs.head_ref }}
|
||||||
|
|||||||
11
.github/workflows/publish-npm.yaml
vendored
11
.github/workflows/publish-npm.yaml
vendored
@@ -10,14 +10,16 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
default: 'lts/*'
|
default: 'lts/*'
|
||||||
type: string
|
type: string
|
||||||
|
npm-registry-url:
|
||||||
|
description: 'NPM registry url'
|
||||||
|
required: false
|
||||||
|
default: 'https://registry.npmjs.org'
|
||||||
|
type: string
|
||||||
secrets:
|
secrets:
|
||||||
NPM_TOKEN:
|
NPM_TOKEN:
|
||||||
required: true
|
required: true
|
||||||
description: 'NPM token'
|
description: 'NPM token'
|
||||||
|
|
||||||
env:
|
|
||||||
NODE_VERSION: lts/*
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
id-token: write
|
id-token: write
|
||||||
@@ -36,7 +38,8 @@ jobs:
|
|||||||
- name: 🔧 Setup Node.js
|
- name: 🔧 Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ inputs.NODE_VERSION }}
|
node-version: ${{ inputs.node-version }}
|
||||||
|
registry-url: ${{ inputs.npm-registry-url }}
|
||||||
|
|
||||||
- name: 🛠️ Setup Node.js Corepack
|
- name: 🛠️ Setup Node.js Corepack
|
||||||
run: corepack enable
|
run: corepack enable
|
||||||
|
|||||||
Reference in New Issue
Block a user