Skip to content

Commit 1bebb82

Browse files
ci: use global workflows for build, test, and release (#17)
Co-authored-by: ReenigneArcher <[email protected]>
1 parent 9cb658d commit 1bebb82

File tree

3 files changed

+64
-151
lines changed

3 files changed

+64
-151
lines changed

.github/workflows/_ci-node.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
# This will run standard CI for Node.js/npm/TypeScript projects.
9+
10+
name: CI-Node
11+
permissions:
12+
contents: write # required for release_setup action
13+
14+
on:
15+
push:
16+
branches:
17+
- master
18+
pull_request:
19+
branches:
20+
- master
21+
22+
concurrency:
23+
group: "${{ github.workflow }}-${{ github.ref }}"
24+
cancel-in-progress: true
25+
26+
jobs:
27+
call-ci-node:
28+
name: CI-Node
29+
uses: LizardByte/.github/.github/workflows/__call-ci-node.yml@master
30+
if: ${{ github.repository != 'LizardByte/.github' }}
31+
secrets:
32+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
33+
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}

.github/workflows/_update-npm.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
contents: read
13+
id-token: write # required for provenance and OIDC
14+
packages: write
15+
16+
on:
17+
release:
18+
types:
19+
- released
20+
21+
concurrency:
22+
group: "${{ github.workflow }}-${{ github.event.release.tag_name }}"
23+
cancel-in-progress: true
24+
25+
jobs:
26+
update-npm:
27+
name: Update NPM
28+
uses: LizardByte/.github/.github/workflows/__call-update-npm.yml@master
29+
if: github.repository_owner == 'LizardByte'
30+
with:
31+
release_version: ${{ github.event.release.tag_name }}

.github/workflows/ci.yml

Lines changed: 0 additions & 151 deletions
This file was deleted.

0 commit comments

Comments
 (0)