forked from vercel/pkg
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into async-resolve
- Loading branch information
Showing
8 changed files
with
155 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Update a dependency On-Demand | ||
|
||
name: Update dependency On-Demand | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
dep: | ||
description: 'Dependency' | ||
required: true | ||
default: '@yao-pkg/pkg-fetch' | ||
version: | ||
description: 'Version' | ||
required: false | ||
default: '' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 20 | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 20.x | ||
cache: 'yarn' | ||
|
||
- name: Update dependency | ||
run: | | ||
yarn add ${{github.event.inputs.dep}}@${{github.event.inputs.version || 'latest'}} | ||
- name: Check for changes | ||
id: check | ||
run: | | ||
git diff --name-only || true | ||
if ! git diff --quiet ; then | ||
echo "Has changes" | ||
echo "changed=true" >> $GITHUB_OUTPUT | ||
VERSION=$(npm info ${{github.event.inputs.dep}} version) | ||
echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
else | ||
echo "No changes detected. Dependency already up to date" | ||
echo "changed=false" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Create Pull Request | ||
if: ${{ steps.check.outputs.changed == 'true' }} | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "feat: bump ${{github.event.inputs.dep}}@${{ steps.check.outputs.version }}" | ||
branch: "${{github.event.inputs.dep}}@${{ steps.check.outputs.version }}" | ||
delete-branch: true | ||
title: "feat: bump ${{github.event.inputs.dep}}@${{ steps.check.outputs.version }}" | ||
body: | | ||
Update ${{github.event.inputs.dep}} to version ${{ steps.check.outputs.version }} | ||
labels: | | ||
dependencies | ||
workflow-bump | ||
base: main | ||
draft: false | ||
|
||
- name: Check outputs | ||
if: ${{ steps.check.outputs.changed == 'true' }} | ||
run: | | ||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
## [5.11.4](https://github.com/yao-pkg/pkg/compare/v5.11.3...v5.11.4) (2024-02-16) | ||
|
||
### Features | ||
|
||
- [email protected] with nodejs 18.19.1 and 20.11.1 ([d6485df](https://github.com/yao-pkg/pkg/commit/d6485df9a0b065be450600785d3a5d52108fddb6)) | ||
|
||
### Bug Fixes | ||
|
||
- tests ([#34](https://github.com/yao-pkg/pkg/issues/34)) ([7472af7](https://github.com/yao-pkg/pkg/commit/7472af714d1766f6a4f62cfdfe038d3291b5cd72)) | ||
|
||
## [5.11.3](https://github.com/yao-pkg/pkg/compare/v5.11.2...v5.11.3) (2024-02-12) | ||
|
||
### Bug Fixes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ const npm = { | |
14: 6, | ||
16: 7, | ||
18: 8, | ||
20: 10, | ||
}[hostVersion]; | ||
|
||
assert(npm !== undefined); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -640,10 +640,10 @@ | |
"@typescript-eslint/types" "6.7.4" | ||
eslint-visitor-keys "^3.4.1" | ||
|
||
"@yao-pkg/[email protected].8": | ||
version "3.5.8" | ||
resolved "https://registry.yarnpkg.com/@yao-pkg/pkg-fetch/-/pkg-fetch-3.5.8.tgz#2601026f8ad8fbdaa0650db2a957d594b84bcb1e" | ||
integrity sha512-WlM4+eRmF1p9M/wqBaYKnVkBwf60wurvMOU38HSx5xfkPg7e4XmBuTv8g/TAZPjSZaQPlz4+/03pUibK4gY55g== | ||
"@yao-pkg/[email protected].9": | ||
version "3.5.9" | ||
resolved "https://registry.yarnpkg.com/@yao-pkg/pkg-fetch/-/pkg-fetch-3.5.9.tgz#dbdb12f683183cba568b620ace660903222fae5a" | ||
integrity sha512-usMwwqFCd2B7k+V87u6kiTesyDSlw+3LpiuYBWe+UgryvSOk/NXjx3XVCub8hQoi0bCREbdQ6NDBqminyHJJrg== | ||
dependencies: | ||
chalk "^4.1.2" | ||
fs-extra "^9.1.0" | ||
|