Skip to content

Commit

Permalink
chore: add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Nov 22, 2023
1 parent 874a651 commit 8a7e589
Show file tree
Hide file tree
Showing 5 changed files with 1,630 additions and 14 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)
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "sapphi-red/vite-plugin-static-copy" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
26 changes: 18 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
name: automatic release
name: Release

on:
push:
tags:
- v*
branches:
- main

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

jobs:
release:
name: release
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-repo
- run: pnpm run build
- name: deploy
run: pnpm publish --no-git-checks
- name: run build
run: pnpm run -r --stream --filter=!./docs build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
title: 'chore: update versions'
commit: 'chore: update versions'
version: pnpm run release:version
publish: pnpm run release:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"lint": "eslint --cache .",
"format": "prettier --write --cache .",
"type-check": "tsc --noEmit",
"test": "vitest"
"test": "vitest",
"release:version": "changeset version && pnpm install --no-frozen-lockfile",
"release:publish": "changeset publish"
},
"repository": {
"type": "git",
Expand All @@ -39,6 +41,7 @@
"vite": "^5.0.0"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@polka/url": "^1.0.0-next.23",
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.9.1",
Expand Down
Loading

0 comments on commit 8a7e589

Please sign in to comment.