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
5 changes: 0 additions & 5 deletions .changeset/proud-comics-heal.md

This file was deleted.

9 changes: 9 additions & 0 deletions .github/workflows/deploy-docs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ defaults:

on:
pull_request:
paths:
- 'fdm-docs/**'
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
Expand All @@ -20,6 +22,13 @@ jobs:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ defaults:

on:
push:
paths:
- 'fdm-docs/**'
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
Expand All @@ -20,6 +22,13 @@ jobs:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/prerelease-fdm-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Prerelease fdm-core to GitHub Packages

defaults:
run:
working-directory: ./fdm-core

on:
pull_request:
paths:
- 'fdm-core/**'
branches:
- main
push:
paths:
- 'fdm-core/**'
branches:
- main

jobs:
prerelease:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.12.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile --filter fdm-core
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.3.1
with:
path: fdm-core
- name: Create a prerelease version from PR
if: github.head_ref != 'main'
run: pnpm version ${{ steps.package-version.outputs.current-version}}-${{ github.head_ref }}.${{ github.sha }} --no-git-tag-version
- name: Create a prerelease version from main
if: github.head_ref == 'main'
run: pnpm version ${{ steps.package-version.outputs.current-version}}-${{ github.sha }} --no-git-tag-version
# - name: Run tests
# run: pnpm test
- name: Publish the package
run: pnpm publish --tag ${{ github.head_ref }} --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions fdm-calculator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# fdm-calculator

## 0.0.1

### Patch Changes

- Updated dependencies [6f6b1c4]
- Updated dependencies [1750661]
- fdm-core@0.3.1
2 changes: 1 addition & 1 deletion fdm-calculator/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fdm-calculator",
"private": true,
"version": "0.0.0",
"version": "0.0.1",
"description": "Calculate various insights based on the Farm Data Model",
"license": "MIT",
"homepage": "https://github.com/SvenVw/fdm",
Expand Down
7 changes: 7 additions & 0 deletions fdm-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog fdm-core

## 0.3.1

### Patch Changes

- 6f6b1c4: Fix building by updating `vite-plugin-dts`
- 1750661: Add GitHub Action to publish dev version of fdm-core to GitHub Packages

## 0.3.0

### Minor Changes
Expand Down
17 changes: 12 additions & 5 deletions fdm-core/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"name": "fdm-core",
"private": true,
"version": "0.3.0",
"name": "@svenvw/fdm-core",
"private": false,
"version": "0.3.1",
"description": "Interface for the Farm Data Model",
"license": "MIT",
"homepage": "https://github.com/SvenVw/fdm",
"homepage": "https://svenvw.github.io/fdm/",
"repository": {
"type": "git",
"url": "git+https://github.com/SvenVw/fdm.git"
},
"bugs": "https://github.com/SvenVw/fdm/issues/new",
"author": {
"name": "Sven Verweij",
Expand Down Expand Up @@ -70,6 +74,9 @@
"postgres": "^3.4.4"
},
"packageManager": "pnpm@9.12.2",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"pnpm": {
"packageExtensions": {
"vite-plugin-dts": {
Expand All @@ -87,4 +94,4 @@
}
}
}
}
}
8 changes: 8 additions & 0 deletions fdm-data/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# fdm-data

## 0.1.1

### Patch Changes

- Updated dependencies [6f6b1c4]
- Updated dependencies [1750661]
- fdm-core@0.3.1

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion fdm-data/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fdm-data",
"private": true,
"version": "0.1.0",
"version": "0.1.1",
"description": "Extend Farm Data Model with catalogue data",
"license": "MIT",
"homepage": "https://github.com/SvenVw/fdm",
Expand Down
6 changes: 6 additions & 0 deletions fdm-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# fdm-docs

## 0.1.2

### Patch Changes

- b357b4c: Trigger test and publish for fdm-docs only if change is made in fdm-docs

## 0.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion fdm-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fdm-docs",
"version": "0.1.1",
"version": "0.1.2",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
Expand Down