Skip to content

Commit

Permalink
reusable workflows should be referenced at the top-level
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatoly03 committed Dec 7, 2024
1 parent 806937b commit e5111ed
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ on:
- "main"

jobs:
build:
name: Build Package
uses: Anatoly03/pixelwalker.js/.github/workflows/build.yml@main

publish-documentation:
runs-on: "ubuntu-latest"
needs: build

permissions:
id-token: "write"
pages: "write"
Expand All @@ -17,12 +24,7 @@ jobs:
name: "github-pages"
url: "${{ steps.deployment.outputs.page_url }}"

runs-on: "ubuntu-latest"

steps:
- name: Build Package
uses: Anatoly03/pixelwalker.js/.github/workflows/build.yml@main

- name: "Building Documentation"
run: npm run docs

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ on:
- "test/**"

jobs:
build:
name: Build Package
uses: Anatoly03/pixelwalker.js/.github/workflows/build.yml@main

publish-release:
name: Publish release to NPM
runs-on: ubuntu-latest
name: Publish release to NPM
needs: build
permissions:
contents: write
timeout-minutes: 3
steps:
- name: Build Package
uses: Anatoly03/pixelwalker.js/.github/workflows/build.yml@main

- name: Update version
run: npm version patch

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ on:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
build:
name: Build Package
uses: Anatoly03/pixelwalker.js/.github/workflows/build.yml@main

run-tests:
runs-on: ubuntu-latest
needs: build
steps:
- name: Build Package
uses: Anatoly03/pixelwalker.js/.github/workflows/build.yml@main

- name: Run Tests
run: npm test

0 comments on commit e5111ed

Please sign in to comment.