Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/config@3.1.1/schema.json",
"changelog": "@changesets/changelog-github",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 14.x
- run: npm install
- run: npm run lint
- run: yarn --frozen-lockfile
- run: yarn lint
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release

on:
push:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: yarn

- name: Install Dependencies
run: yarn --frozen-lockfile

- name: Build
run: yarn build

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
commit: 'chore: release simple-git-hooks'
title: 'chore: release simple-git-hooks'
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 14.x
- run: npm install
- run: npm run test
- run: yarn --frozen-lockfile
- run: yarn test
File renamed without changes.
30 changes: 12 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
"author": "Mikhail Gorbunov <toplenboren@gmail.com>",
"main": "simple-git-hooks.js",
"bin": "./cli.js",
"packageManager": "yarn@1.22.22",
"files": [
"cli.js",
"postinstall.js",
"simple-git-hooks.js",
"uninstall.js"
],
"scripts": {
"postinstall": "node ./postinstall.js",
"lint": "eslint *.js",
"test": "jest",
"publish": "publish",
"create-publish-dist": "clean-publish --no-publish",
"release": "clean-pkg-json && changeset publish",
"uninstall": "node ./uninstall.js"
},
"keywords": [
Expand All @@ -29,29 +35,17 @@
"lint-staged": {
"*.js": "eslint"
},
"clean-publish": {
"files": [
"LICENSE.txt",
".gitignore",
"simple-git-hooks.test.js",
"_tests",
".github",
".idea",
".vscode",
".npmignore",
"changelog.md"
],
"packageManager": "npm"
},
"simple-git-hooks": {
"pre-commit": "yarn lint"
},
"devDependencies": {
"clean-publish": "^4.2.0",
"@changesets/changelog-github": "^0.5.1",
"@changesets/cli": "^2.28.1",
"clean-pkg-json": "^1.2.1",
"eslint": "^7.19.0",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"lodash.isequal": "^4.5.0",
"simple-git-hooks": "^2.11.0"
"simple-git-hooks": "link:."
}
}
Loading