Skip to content

Commit bb7ac1f

Browse files
authored
Reuse workflow (#108)
1 parent 83ca9e4 commit bb7ac1f

File tree

3 files changed

+28
-60
lines changed

3 files changed

+28
-60
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,4 @@ on:
2222

2323
jobs:
2424
lint:
25-
name: Lint
26-
runs-on: ubuntu-latest
27-
28-
strategy:
29-
matrix:
30-
node-version: [22.x]
31-
32-
steps:
33-
- uses: actions/checkout@v4
34-
35-
- name: Use Node.js ${{ matrix.node-version }}
36-
uses: actions/setup-node@v4
37-
with:
38-
node-version: ${{ matrix.node-version }}
39-
cache: "npm"
40-
41-
- name: Install Dependencies
42-
run: |
43-
npm install
44-
45-
- name: Lint
46-
run: |
47-
npm run lint
25+
uses: 8hobbies/workflows/.github/workflows/npm-lint.yml@bffba40c8b2a693361c8778529c3fc41ec9369b9

.github/workflows/pages.yml

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -21,43 +21,8 @@ on:
2121
branches: ["master"]
2222

2323
jobs:
24-
build:
25-
name: Build Pages
26-
runs-on: ubuntu-24.04
27-
28-
steps:
29-
- uses: actions/checkout@v4
30-
31-
- uses: actions/setup-node@v4
32-
with:
33-
node-version: 22.x
34-
cache: "npm"
35-
36-
- name: Install Dependencies
37-
run: |
38-
npm install
39-
40-
- name: Generate Docs
41-
run: |
42-
npm run doc
43-
44-
- name: Upload GitHub Pages Artifact
45-
uses: actions/[email protected]
46-
with:
47-
path: docs
48-
49-
deploy:
50-
name: Deploy Pages
51-
if: github.ref == 'refs/heads/master'
52-
runs-on: ubuntu-24.04
24+
pages:
5325
permissions:
5426
pages: write
5527
id-token: write
56-
environment:
57-
name: github-pages
58-
url: ${{ steps.deployment.outputs.page_url }}
59-
needs: build
60-
steps:
61-
- name: Deploy to GitHub Pages
62-
id: deployment
63-
uses: actions/deploy-pages@v4
28+
uses: 8hobbies/workflows/.github/workflows/npm-doc-pages.yml@beb24d29082fba712f768d8957294d5b6db27f08
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2024 8 Hobbies, LLC <[email protected]>
2+
#
3+
# Licensed under the Apache License, Version 2.0(the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Publish Dry Run
16+
17+
on:
18+
push:
19+
branches: ["master"]
20+
pull_request:
21+
branches: ["master"]
22+
23+
jobs:
24+
run:
25+
uses: 8hobbies/workflows/.github/workflows/npm-publish-dry-run.yml@998d75668913e8edccf662dd9091a6aeada7dc93

0 commit comments

Comments
 (0)