Skip to content

Commit 6bb90dd

Browse files
chore: update global workflows (#73)
1 parent 4988c03 commit 6bb90dd

4 files changed

Lines changed: 45 additions & 10 deletions

File tree

.github/workflows/_ci-node.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88
# This will run standard CI for Node.js/npm/TypeScript projects.
99

1010
name: CI-Node
11-
permissions:
12-
contents: write # required for release_setup action
11+
permissions: {}
1312

1413
on:
14+
pull_request:
1515
push:
1616
branches:
1717
- master
18-
pull_request:
1918

2019
concurrency:
2120
group: "${{ github.workflow }}-${{ github.ref }}"
@@ -26,6 +25,8 @@ jobs:
2625
name: CI-Node
2726
uses: LizardByte/.github/.github/workflows/__call-ci-node.yml@master
2827
if: ${{ github.repository != 'LizardByte/.github' }}
28+
permissions:
29+
contents: write # required for release_setup action
2930
secrets:
3031
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3132
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}

.github/workflows/_codeql.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44
# the above-mentioned repo.
55

66
name: CodeQL
7-
permissions:
8-
actions: read
9-
contents: read
10-
security-events: write
7+
permissions: {}
118

129
on:
10+
pull_request:
1311
push:
1412
branches:
1513
- master
16-
pull_request:
1714
schedule:
1815
- cron: '00 12 * * 0' # every Sunday at 12:00 UTC
1916

@@ -26,3 +23,7 @@ jobs:
2623
name: CodeQL
2724
uses: LizardByte/.github/.github/workflows/__call-codeql.yml@master
2825
if: ${{ github.repository != 'LizardByte/.github' }}
26+
permissions:
27+
actions: read
28+
contents: read
29+
security-events: write

.github/workflows/_common-lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
# the above-mentioned repo.
55

66
name: common lint
7-
permissions:
8-
contents: read
7+
permissions: {}
98

109
on:
1110
pull_request:
@@ -19,3 +18,5 @@ jobs:
1918
name: Common Lint
2019
uses: LizardByte/.github/.github/workflows/__call-common-lint.yml@master
2120
if: ${{ github.repository != 'LizardByte/.github' }}
21+
permissions:
22+
contents: read

.github/workflows/_update-npm.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
# This workflow is centrally managed in https://github.com/LizardByte/.github/
3+
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
4+
# the above-mentioned repo.
5+
6+
# To use, add the `npm-pkg` repository label to identify repositories that should trigger this workflow.
7+
8+
# Update NPM packages on release events.
9+
10+
name: Update NPM
11+
permissions: {}
12+
13+
on:
14+
release:
15+
types:
16+
- released
17+
18+
concurrency:
19+
group: "${{ github.workflow }}-${{ github.event.release.tag_name }}"
20+
cancel-in-progress: true
21+
22+
jobs:
23+
update-npm:
24+
name: Update NPM
25+
uses: LizardByte/.github/.github/workflows/__call-update-npm.yml@master
26+
if: github.repository_owner == 'LizardByte'
27+
permissions:
28+
contents: read
29+
id-token: write # required for provenance and OIDC
30+
packages: write
31+
with:
32+
release_version: ${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)