refactor: update workflows to remove unnecessary inputs and standardize job names
This commit is contained in:
2
.github/workflows/build-lint-test.yaml
vendored
2
.github/workflows/build-lint-test.yaml
vendored
@@ -46,7 +46,7 @@ jobs:
|
|||||||
- name: 📥 Install Dependencies
|
- name: 📥 Install Dependencies
|
||||||
run: yarn install --immutable
|
run: yarn install --immutable
|
||||||
|
|
||||||
- name: 🏗️ Build TypeScript
|
- name: 🏗️ Build
|
||||||
run: yarn build
|
run: yarn build
|
||||||
env:
|
env:
|
||||||
WIREIT_LOGGER: metrics
|
WIREIT_LOGGER: metrics
|
||||||
|
|||||||
18
.github/workflows/codeql.yaml
vendored
18
.github/workflows/codeql.yaml
vendored
@@ -4,23 +4,17 @@ name: CodeQL
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
|
||||||
node-version:
|
|
||||||
description: "Node.js version"
|
|
||||||
required: true
|
|
||||||
default: "lts/*"
|
|
||||||
type: string
|
|
||||||
|
|
||||||
jobs:
|
permissions:
|
||||||
analyze-code-ql:
|
|
||||||
name: CodeQL Analyze
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
actions: read
|
actions: read
|
||||||
contents: read
|
contents: read
|
||||||
security-events: write
|
security-events: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
name: CodeQL Analyze
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
14
.github/workflows/dependency-review.yaml
vendored
14
.github/workflows/dependency-review.yaml
vendored
@@ -4,21 +4,15 @@ name: Dependency Review
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
|
||||||
node-version:
|
permissions:
|
||||||
description: "Node.js version"
|
contents: read
|
||||||
required: true
|
|
||||||
default: "lts/*"
|
|
||||||
type: string
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
dependency-review:
|
main:
|
||||||
name: Dependency Review
|
name: Dependency Review
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: ⤵️ Checkout repository
|
- name: ⤵️ Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
12
.github/workflows/publish-npm.yml
vendored
12
.github/workflows/publish-npm.yml
vendored
@@ -14,17 +14,17 @@ on:
|
|||||||
env:
|
env:
|
||||||
NODE_VERSION: lts/*
|
NODE_VERSION: lts/*
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish-npm:
|
main:
|
||||||
if: github.repository_owner == 'the-nexim'
|
if: github.repository_owner == 'the-nexim'
|
||||||
|
|
||||||
name: Publish NPM
|
name: Publish NPM
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 📥 Checkout repository
|
- name: 📥 Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -55,7 +55,7 @@ jobs:
|
|||||||
- name: 🗃️ Cache Wireit
|
- name: 🗃️ Cache Wireit
|
||||||
uses: google/wireit@setup-github-actions-caching/v2
|
uses: google/wireit@setup-github-actions-caching/v2
|
||||||
|
|
||||||
- name: 🏗️ Build TypeScript
|
- name: 🏗️ Build
|
||||||
run: yarn build
|
run: yarn build
|
||||||
env:
|
env:
|
||||||
WIREIT_LOGGER: metrics
|
WIREIT_LOGGER: metrics
|
||||||
|
|||||||
8
.github/workflows/release.yaml
vendored
8
.github/workflows/release.yaml
vendored
@@ -15,14 +15,14 @@ env:
|
|||||||
NODE_VERSION: lts/*
|
NODE_VERSION: lts/*
|
||||||
GPG_KEY_ID: ${{ vars.GPG_KEY_ID }}
|
GPG_KEY_ID: ${{ vars.GPG_KEY_ID }}
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
name: Build & Lint & Test & Release
|
name: Build & Lint & Test & Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: ⤵️ Checkout repository
|
- name: ⤵️ Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -70,7 +70,7 @@ jobs:
|
|||||||
- name: 🗃️ Cache Wireit
|
- name: 🗃️ Cache Wireit
|
||||||
uses: google/wireit@setup-github-actions-caching/v2
|
uses: google/wireit@setup-github-actions-caching/v2
|
||||||
|
|
||||||
- name: 🏗️ Build TypeScript
|
- name: 🏗️ Build
|
||||||
run: yarn build
|
run: yarn build
|
||||||
env:
|
env:
|
||||||
WIREIT_LOGGER: metrics
|
WIREIT_LOGGER: metrics
|
||||||
|
|||||||
19
.github/workflows/sync-labels.yml
vendored
19
.github/workflows/sync-labels.yml
vendored
@@ -3,22 +3,17 @@
|
|||||||
name: Sync labels
|
name: Sync labels
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_call:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- next
|
|
||||||
paths:
|
|
||||||
- .github/labels.yml
|
|
||||||
|
|
||||||
jobs:
|
permissions:
|
||||||
labels:
|
|
||||||
name: Sync labels
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
contents: read
|
||||||
issues: write
|
issues: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
name: Sync labels
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: ⤵️ Check out code from GitHub
|
- name: ⤵️ Check out code from GitHub
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user