Skip to content

Commit

Permalink
chore: enhance usage of workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Jan 4, 2025
1 parent b747a35 commit 188cfa3
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ on:
jobs:
main:
uses: the-nexim/actions/.github/workflows/build-lint-test.yaml@v1

permissions:
contents: read

with:
node-version: lts/*
secrets: inherit
9 changes: 2 additions & 7 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@ on:
workflow_dispatch:

schedule:
- cron: '0 7 * */2 *'
# │ │ │ │ │
# │ │ │ │ └─── day of the week (0 - 6 or SUN-SAT)
# │ │ │ └────── month (1 - 12 or JAN-DEC)
# │ │ └───────── day of the month (1 - 31)
# │ └─────────── hour (0 - 23)
# └───────────── minute (0 - 59)
- cron: '0 7 * */2 *' # every 2 days at 7:00 UTC

jobs:
main:
uses: the-nexim/actions/.github/workflows/codeql.yaml@v1

permissions:
actions: read
contents: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dependency-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ on:
jobs:
main:
uses: the-nexim/actions/.github/workflows/dependency-review.yaml@v1

permissions:
contents: read
9 changes: 5 additions & 4 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ on:
types:
- created

env:
NODE_VERSION: lts/*

jobs:
main:
uses: the-nexim/actions/.github/workflows/publish-npm.yaml@v1

permissions:
contents: read
id-token: write

with:
node-version: lts/*
secrets: inherit

secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12 changes: 7 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ name: Build & Lint & Test & Release
on:
workflow_dispatch:

env:
NODE_VERSION: lts/*
GPG_KEY_ID: ${{ vars.GPG_KEY_ID }}

jobs:
main:
uses: the-nexim/actions/.github/workflows/release.yaml@v1

permissions:
contents: write

with:
node-version: lts/*
secrets: inherit

secrets:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
5 changes: 3 additions & 2 deletions .github/workflows/sync-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: Sync labels

on:
workflow_dispatch:

push:
branches:
- next
Expand All @@ -13,8 +14,8 @@ on:

jobs:
main:
uses: the-nexim/actions/.github/workflows/sync-label.yaml@next
uses: the-nexim/actions/.github/workflows/sync-label.yaml@v1

permissions:
contents: read
issues: write
secrets: inherit

0 comments on commit 188cfa3

Please sign in to comment.