Skip to content

feat: improve workflows #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 26, 2025
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