Skip to content

Commit

Permalink
chore: fork release based on PR ds300#507
Browse files Browse the repository at this point in the history
JounQin committed Jan 6, 2024

Verified

This commit was signed with the committer’s verified signature.
JounQin JounQin
1 parent ae90c02 commit 8d392d5
Showing 6 changed files with 1,359 additions and 521 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)
16 changes: 16 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://unpkg.com/@changesets/config/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "un-ts/patch-package"
}
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "fork-release",
"updateInternalDependencies": "patch",
"ignore": []
}
21 changes: 14 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
on:
pull_request:
push:
branches: [master]
branches:
- master
name: Test
jobs:
test:
name: ${{ matrix.os }} on node ${{ matrix.node }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14, 16, 18]
os:
- ubuntu-latest
node:
- 14
- 16
- 18
- 20
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: yarn install
cache: yarn
- run: yarn --immutable
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "patch-package"
- run: yarn run test
- run: yarn test
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
push:
branches:
- fork-release

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: Enable Corepack
run: corepack enable

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

- name: Install Dependencies
run: yarn --immutable

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
commit: "chore: release @unts/patch-package"
title: "chore: release @unts/patch-package"
publish: yarn changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
{
"name": "patch-package",
"name": "@unts/patch-package",
"version": "8.0.0",
"description": "Fix broken node modules with no fuss",
"main": "dist/index.js",
"repository": "github:ds300/patch-package",
"repository": "git+https://github.com/un-ts/patch-package.git",
"author": "David Sheldrick",
"maintainers": [
"JounQin (https://www.1stG.me) <[email protected]>"
],
"license": "MIT",
"engines": {
"node": ">=14",
"npm": ">5"
},
"bin": "./index.js",
"bin": {
"patch-package": "./index.js"
},
"scripts": {
"prepublishOnly": "yarn run clean && yarn run build",
"build": "tsc --project tsconfig.build.json",
@@ -48,6 +53,8 @@
]
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@types/app-root-path": "^1.2.4",
"@types/cross-spawn": "^6.0.0",
"@types/fs-extra": "^9.0.0",
1,782 changes: 1,271 additions & 511 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 8d392d5

Please sign in to comment.