Skip to content

Commit

Permalink
Added changesets, added release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 committed Jan 27, 2024
1 parent d195058 commit a969687
Show file tree
Hide file tree
Showing 7 changed files with 2,722 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/cyan-owls-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'vite-plugin-pagefind': patch
---

Released package
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# vite-plugin-pagefind

A Vite plugin for easily integrating pagefind into vite projects.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-pagefind",
"description": "Plugin for easily integrating pagefind into vite projects",
"description": "A Vite plugin for easily integrating pagefind into vite projects",
"version": "0.0.1",
"author": {
"name": "Hugo Korte",
Expand All @@ -15,9 +15,11 @@
"scripts": {
"dev": "tsc -w",
"build": "tsc",
"format": "prettier --write ."
"format": "prettier --write .",
"publish": "pnpm build && changesets publish"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@types/node": "^20.11.8",
"colorette": "^2.0.20",
"prettier": "3.2.4",
Expand Down
Loading

0 comments on commit a969687

Please sign in to comment.