Skip to content

Commit

Permalink
ci: setup changeset (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradel authored Sep 27, 2023
1 parent ac09756 commit e42d0df
Show file tree
Hide file tree
Showing 6 changed files with 572 additions and 16 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)
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/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"privatePackages": {
"version": true,
"tag": true
},
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/odd-dolls-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fxhash/eslint-config": patch
---

Release first automated version.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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@v4

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"

- name: Install Dependencies
run: pnpm install

- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
with:
version: pnpm run version
publish: pnpm run release
commit: "chore: release"
title: "chore: create new release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
"private": true,
"license": "MIT",
"packageManager": "[email protected]",
"scripts": {},
"devDependencies": {}
"scripts": {
"version": "pnpm changeset version && pnpm install --lockfile-only",
"release": "pnpm changeset publish"
},
"devDependencies": {
"@changesets/cli": "2.26.2"
}
}
Loading

0 comments on commit e42d0df

Please sign in to comment.