Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ExaDev/breadboard-client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.0
Choose a base ref
...
head repository: ExaDev/breadboard-client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Mar 6, 2025

  1. Copy the full SHA
    f98be66 View commit details
  2. Copy the full SHA
    6ba1572 View commit details

Commits on Mar 7, 2025

  1. Copy the full SHA
    f8b5a7b View commit details
Showing with 70 additions and 57 deletions.
  1. +69 −14 .github/workflows/ci.yml
  2. +0 −41 .github/workflows/release.yml
  3. +1 −2 package.json
83 changes: 69 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -12,9 +12,8 @@ on:
- main

jobs:
test-and-build:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

@@ -29,10 +28,24 @@ jobs:
- name: Install dependencies
run: yarn install --immutable

- name: Setup environment
run: |
echo "NODE_ENV=test" >> $GITHUB_ENV
# Add any other environment variables here
- name: Build
run: yarn build

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- run: corepack enable

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"

- name: Install dependencies
run: yarn install --immutable

- name: Run tests with coverage
run: yarn test:coverage:ci
@@ -42,18 +55,60 @@ jobs:
BOARD_ID: ${{ secrets.BOARD_ID }}
BREADBOARD_API_KEY: ${{ secrets.BREADBOARD_API_KEY }}

- name: Build
run: yarn build

- name: Upload coverage reports
uses: codecov/codecov-action@v5
with:
directory: ./coverage/
fail_ci_if_error: false

- name: Upload build artifacts
uses: actions/upload-artifact@v4
release:
needs:
- test
- build
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
packages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- run: corepack enable

# Publish to GitHub Packages
- name: Set up Node.js for GitHub Packages
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
registry-url: "https://npm.pkg.github.com"
scope: "@exadev"

- name: Install dependencies
run: yarn install --immutable

- name: Build
run: yarn build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release

# Publish to npmjs.com
- name: Set up Node.js for npm
uses: actions/setup-node@v4
with:
name: dist
path: dist/
retention-days: 7
node-version: "20"
registry-url: "https://registry.npmjs.org"
scope: "@exadev"

- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish
41 changes: 0 additions & 41 deletions .github/workflows/release.yml

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -43,8 +43,7 @@
"type": "module",
"types": "dist/index.d.ts",
"publishConfig": {
"registry": "https://npm.pkg.github.com",
"access": "public"
},
"version": "1.0.0"
}
}