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