Skip to content

Commit

Permalink
feat: add changesets and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fox1t committed Feb 12, 2023
1 parent 9a4264c commit 1745dd5
Show file tree
Hide file tree
Showing 4 changed files with 1,481 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [],
"privatePackages": {
"version": true,
"tag": true
}
}
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
branches:
- main

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

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 7.27.0
- name: Install with pnpm
run: pnpm install
- name: Create Release Pull Request
uses: changesets/action@v1
with:
publish: pnpm release
env:
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 @@ -14,7 +14,8 @@
"lint": "tsc --noemit && rome check .",
"format": "rome format --write .",
"test": "vitest run",
"test:ci": "vitest run --reporter=junit --reporter=default --coverage"
"test:ci": "vitest run --reporter=junit --reporter=default --coverage",
"release": "pnpm build && changeset publish"
},
"keywords": [],
"author": "Ducktors <your@ducktors.dev> (https://ducktors.dev)",
Expand All @@ -27,6 +28,8 @@
"tslib": "^2.5.0"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.0",
"@ducktors/tsconfig": "^0.1.1",
"@types/minimist": "^1.2.2",
"@types/node": "^16.18.12",
Expand Down
Loading

0 comments on commit 1745dd5

Please sign in to comment.