Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feat/pocketbase-0.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pawcoding committed Dec 8, 2024
2 parents 7622d1f + a81dc8b commit 5c15b8d
Show file tree
Hide file tree
Showing 6 changed files with 3,491 additions and 4,617 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 🚀 Publish new version
# Run this on every push to master and next
on:
push:
branches:
- master
- next
permissions:
contents: read

jobs:
publish:
# Use the latest version of Ubuntu
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
# Checkout repository
- name: 📥 Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false

# Setup Node
- name: 📦 Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "npm"

# Install dependencies
- name: 📦 Install dependencies
run: |
npm ci
# Lint code
- name: 🧹 Lint code
run: npm run lint

# Create release
- name: 🚀 Create release
id: release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [1.0.0](https://github.com/pawcoding/astro-loader-pocketbase/compare/v0.5.0...v1.0.0) (2024-12-07)


### Bug Fixes

* **release:** update version number ([901af52](https://github.com/pawcoding/astro-loader-pocketbase/commit/901af52bfd91dc970e8bcee6fffcf8aaae97c75f))


### Documentation

* **README:** add note for compatibility ([2613918](https://github.com/pawcoding/astro-loader-pocketbase/commit/261391897ad6984eebbaf7bbb8195ada2382eb67))


### BREAKING CHANGES

* **release:** This is the first stable release of this package.
* **README:** This marks the first stable release of this package.
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
# astro-loader-pocketbase

<!-- ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/pawcoding/astro-loader-pocketbase/release.yaml?style=flat-square) -->

![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/pawcoding/astro-loader-pocketbase/release.yaml?style=flat-square)
[![NPM Version](https://img.shields.io/npm/v/astro-loader-pocketbase?style=flat-square)](https://www.npmjs.com/package/astro-loader-pocketbase)
[![NPM Downloads](https://img.shields.io/npm/dw/astro-loader-pocketbase?style=flat-square)](https://www.npmjs.com/package/astro-loader-pocketbase)
[![GitHub License](https://img.shields.io/github/license/pawcoding/astro-loader-pocketbase?style=flat-square)](https://github.com/pawcoding/astro-loader-pocketbase/blob/master/LICENSE)
[![Discord](https://img.shields.io/discord/484669557747875862?style=flat-square&label=Discord)](https://discord.gg/GzgTh4hxrx)

This package is a simple loader to load data from a PocketBase database into Astro using the [Astro Loader API](https://5-0-0-beta.docs.astro.build/en/reference/loader-reference/) introduced in Astro 5.

> [!WARNING]
> This package is still under development.
> It will have a first stable release when Astro 5 is released.
> Until then, **breaking changes can occur at any time**.
> [!TIP]
> If you want to see the PocketBase data directly in your Astro toolbar, try the [`astro-integration-pocketbase`](https://github.com/pawcoding/astro-integration-pocketbase).
## Compatibility

| Loader version | Astro version | PocketBase version |
| ---------------------------------------------------------------------------- | ------------- | ------------------ |
| >= 0.6.0 | >= 5.0.0-beta | >= 0.23.0 |
| <= [0.5.0](https://github.com/pawcoding/astro-loader-pocketbase/tree/v0.5.0) | >= 5.0.0-beta | < 0.23.0 |
| Loader | Astro | PocketBase |
| ------ | ----- | ---------- |
| 2.0.0 | 5.0.0 | >= 0.23.0 |
| 1.0.0 | 5.0.0 | <= 0.22.0 |

## Basic usage

Expand Down
Loading

0 comments on commit 5c15b8d

Please sign in to comment.