Skip to content

Commit

Permalink
ci: 👷 Add more jobs to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
CPlusPatch committed Aug 24, 2024
1 parent 737c851 commit d8b6ddd
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test Build

on:
push:

permissions:
contents: read
# For provenance generation
id-token: write

jobs:
# Build job
build:
runs-on: ubuntu-latest
environment: NPM Deploy
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v2

- name: Build
run: bun install && bun run build
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Publish NPM Package
name: Build & Publish Package

on:
# Allows you to run this workflow manually from the Actions tab
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/test-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test Publish

on:
push:

permissions:
contents: read
# For provenance generation
id-token: write

jobs:
# Build job
build:
runs-on: ubuntu-latest
environment: NPM Deploy
strategy:
matrix:
package: ["federation", "client"]
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v2

- name: Install
run: cd ${{ matrix.package }} && bun install

- name: Build
run: bun run Build

- name: Publish to NPM
run: npm publish --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish to JSR
run: bunx jsr publish --allow-slow-types --allow-dirty --dry-run
26 changes: 26 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run Tests

on:
push:

permissions:
contents: read
# For provenance generation
id-token: write

jobs:
# Build job
build:
runs-on: ubuntu-latest
environment: NPM Deploy
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v2

- name: Install
run: bun install

- name: Test
run: bun run test

0 comments on commit d8b6ddd

Please sign in to comment.