Skip to content
Closed
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
3 changes: 2 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"web",
"mobile-app",
"@beakerstack/shared",
"@beakerstack/shared-tests"
"@beakerstack/shared-tests",
"@beakerstack/test-utils"
],
"privatePackages": {
"version": false,
Expand Down
5 changes: 0 additions & 5 deletions .changeset/fiery-terms-wash.md

This file was deleted.

32 changes: 24 additions & 8 deletions .github/workflows/release-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,32 @@ jobs:
echo "tag=${YEAR}.${PADDED_N}" >> $GITHUB_OUTPUT
fi

# orhun/git-cliff-action@v3 builds a Docker image on Debian buster; apt repos are EOL (404).
- name: Install git-cliff
env:
GIT_CLIFF_VERSION: 2.13.1
run: |
arch=$(uname -m)
case "$arch" in
x86_64) arch_suffix=x86_64 ;;
aarch64) arch_suffix=aarch64 ;;
*) echo "unsupported arch: $arch"; exit 1 ;;
esac
curl -fsSL \
"https://github.com/orhun/git-cliff/releases/download/v${GIT_CLIFF_VERSION}/git-cliff-${GIT_CLIFF_VERSION}-${arch_suffix}-unknown-linux-gnu.tar.gz" \
| tar xz -C /tmp
sudo mv "/tmp/git-cliff-${GIT_CLIFF_VERSION}/git-cliff" /usr/local/bin/git-cliff
git-cliff --version

- name: Generate release notes
uses: orhun/git-cliff-action@v3
with:
config: cliff.toml
args: >-
--tag-pattern '^[0-9]{4}\.'
--tag ${{ steps.tag.outputs.tag }}
--latest
run: |
git-cliff \
--config cliff.toml \
--tag-pattern '^[0-9]{4}\.' \
--tag "${{ steps.tag.outputs.tag }}" \
--latest \
--output RELEASE_NOTES.md
env:
OUTPUT: RELEASE_NOTES.md
GITHUB_REPO: ${{ github.repository }}

- name: Create annotated tag
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Build test-utils package
run: npm run build --workspace=@beakerstack/test-utils

- name: Test test-utils package
run: npm run test --workspace=@beakerstack/test-utils

- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ When extracting reusable code into a new `@beakerstack/*` package:
4. Add a changeset for the initial release.
5. Follow the standard branch flow. The release workflow handles the first publish.

See `packages/test-utils/` for a minimal working example.
See `packages/test-utils/` for package layout (workspace-only scaffold; not published to npm).

## Documentation

Expand Down
10 changes: 2 additions & 8 deletions packages/test-utils/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
# @beakerstack/test-utils

Testing utilities for [BeakerStack](https://github.com/Artificer-Innovations/BeakerStack)-based projects.
Internal workspace scaffold for a publishable `@beakerstack/*` package layout. Not published to npm; use the workspace import from the monorepo root.

## Installation

```bash
npm install --save-dev @beakerstack/test-utils
```

## Usage
## Usage (monorepo)

```typescript
import { wait, testId } from '@beakerstack/test-utils';
Expand Down
6 changes: 2 additions & 4 deletions packages/test-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@beakerstack/test-utils",
"version": "0.0.0",
"version": "0.0.1",
"private": true,
"description": "Testing utilities for BeakerStack-based projects",
"keywords": [
"beakerstack",
Expand Down Expand Up @@ -37,9 +38,6 @@
"README.md",
"LICENSE"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
"clean": "rm -rf dist",
Expand Down
Loading