Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/pass-artifacts-to-next-jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: pass-artifacts-to-next-jobs

on: workflow_dispatch

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup

- name: Build
run: yarn build

- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact
path: build

run-build:
name: Run build
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup

- name: Download Build Artifact
uses: actions/download-artifact@v4
with:
name: build-artifact

- name: Run
# This assumes that your build artifacts is an index.js
run: node index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ jobs:
- name: Build
run: yarn build

- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact
path: build

lint:
name: Lint
runs-on: ubuntu-latest
Expand All @@ -40,7 +34,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
needs: build
needs: [build, lint]

steps:
- uses: actions/create-github-app-token@v1
Expand All @@ -58,11 +52,6 @@ jobs:
- name: Setup
uses: ./.github/actions/setup

- name: Download Build Artifact
uses: actions/download-artifact@v4
with:
name: build-artifact

- name: Configure Git User
run: |
git config --global user.name "${GITHUB_ACTOR}"
Expand Down