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
25 changes: 25 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Check

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v6
- name: Install node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: 'pnpm'

- name: Install
run: pnpm install --frozen-lockfile

- name: Check all
run: pnpm check-all
14 changes: 7 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: googleapis/release-please-action@v4
- uses: googleapis/release-please-action@v5
id: release
with:
release-type: node
Expand All @@ -27,11 +27,11 @@ jobs:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 20
node-version-file: .nvmrc
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm@11
- run: yarn install --frozen-lockfile
- run: npm publish --access public
- run: pnpm install --frozen-lockfile
- run: pnpm publish --access public --no-git-checks
27 changes: 0 additions & 27 deletions .github/workflows/test.yml

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Examples:
## Install

```
yarn add @atb-as/config-specs
pnpm add @atb-as/config-specs
```

## Tests and fixtures
Expand Down Expand Up @@ -100,7 +100,7 @@ quality across Firestore, Webshop and App for all organisations involved.

## Release

1. Once your changes are ready, make sure to run `yarn build`.
1. Once your changes are ready, make sure to run `pnpm build`.
2. Merge a PR to main, where the commit message follows the [conventional commits specification](https://www.conventionalcommits.org/en/v1.0.0/).
3. The Github action `release-please-action` will create a PR to update the package version and changelog.
- `feat` will be a minor release.
Expand Down
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,23 @@
"!lib/tests"
],
"private": false,
"packageManager": "pnpm@11.5.2",
"scripts": {
"prepublishOnly": "yarn build",
"prepublishOnly": "pnpm build",
"cli": "node -r @swc-node/register src/tools/bin.ts",
"gen": "node -r @swc-node/register src/tools/generate-schemas.ts",
"build": "rimraf lib && yarn gen && tsc && yarn lint",
"build": "rimraf lib && pnpm gen && tsc && pnpm lint",
"typecheck": "tsc --noEmit",
"test": "vitest",
"lint": "npx prettier . --write"
"test": "vitest run",
"lint": "prettier . --write",
"check-all": "pnpm typecheck && pnpm test && pnpm lint && pnpm build"
},
"devDependencies": {
"@swc-node/register": "^1.6.2",
"@swc/core": "^1.3.44",
"@tsconfig/node22": "^22.0.2",
"@tsconfig/node24": "^24.0.4",
"@types/js-yaml": "^4.0.5",
"@types/node": "^18.15.11",
"@types/node": "^24.13.1",
"@types/yargs": "^17.0.24",
"prettier": "^3.2.5",
"rimraf": "^4.4.1",
Expand All @@ -40,7 +42,7 @@
"dependencies": {
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"glob": "^9.3.2",
"glob": "^13.0.6",
"js-yaml": "^4.1.0",
"yargs": "^17.7.1"
},
Expand Down
Loading
Loading