Skip to content

Commit

Permalink
chore: @npmcli/[email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys authored and wraithgar committed Nov 1, 2022
1 parent 9709ae6 commit 2293fb2
Show file tree
Hide file tree
Showing 19 changed files with 71 additions and 64 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
name: CI - Release

on:
workflow_dispatch:
inputs:
ref:
required: true
type: string
default: latest
workflow_call:
inputs:
ref:
Expand All @@ -23,7 +29,7 @@ jobs:
steps:
- name: Get Workflow Job
uses: actions/github-script@v6

if: inputs.check-sha
id: check-output
env:
JOB_NAME: "Lint All"
Expand Down Expand Up @@ -57,7 +63,7 @@ jobs:
- name: Create Check
uses: LouisBrunner/[email protected]
id: check

if: inputs.check-sha
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: in_progress
Expand Down Expand Up @@ -85,7 +91,7 @@ jobs:
run: node . run postlint --ignore-scripts -ws -iwr --if-present
- name: Conclude Check
uses: LouisBrunner/[email protected]
if: always()
if: steps.check.outputs.check_id && always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ job.status }}
Expand Down Expand Up @@ -121,7 +127,7 @@ jobs:
steps:
- name: Get Workflow Job
uses: actions/github-script@v6

if: inputs.check-sha
id: check-output
env:
JOB_NAME: "Test All"
Expand Down Expand Up @@ -155,7 +161,7 @@ jobs:
- name: Create Check
uses: LouisBrunner/[email protected]
id: check

if: inputs.check-sha
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: in_progress
Expand Down Expand Up @@ -186,7 +192,7 @@ jobs:
run: node scripts/git-dirty.js
- name: Conclude Check
uses: LouisBrunner/[email protected]
if: always()
if: steps.check.outputs.check_id && always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ job.status }}
Expand Down Expand Up @@ -219,7 +225,7 @@ jobs:
steps:
- name: Get Workflow Job
uses: actions/github-script@v6

if: inputs.check-sha
id: check-output
env:
JOB_NAME: "Smoke Publish"
Expand Down Expand Up @@ -253,7 +259,7 @@ jobs:
- name: Create Check
uses: LouisBrunner/[email protected]
id: check

if: inputs.check-sha
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: in_progress
Expand Down Expand Up @@ -288,7 +294,7 @@ jobs:
SMOKE_PUBLISH_NPM=1 npm test -w smoke-tests --ignore-scripts
- name: Conclude Check
uses: LouisBrunner/[email protected]
if: always()
if: steps.check.outputs.check_id && always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ job.status }}
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches:
- main
- latest
- release/v*

permissions:
contents: write
Expand Down Expand Up @@ -85,7 +86,7 @@ jobs:
return commentId
- name: Get Workflow Job
uses: actions/github-script@v6
if: steps.release.outputs.pr-number
if: steps.release.outputs.pr-sha
id: check-output
env:
JOB_NAME: "Release"
Expand Down Expand Up @@ -119,7 +120,7 @@ jobs:
- name: Create Check
uses: LouisBrunner/[email protected]
id: check
if: steps.release.outputs.pr-number
if: steps.release.outputs.pr-sha
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: in_progress
Expand Down Expand Up @@ -173,7 +174,7 @@ jobs:
echo "::set-output name=sha::$(git rev-parse HEAD)"
- name: Get Workflow Job
uses: actions/github-script@v6

if: steps.commit.outputs.sha
id: check-output
env:
JOB_NAME: "Update - Release"
Expand Down Expand Up @@ -207,7 +208,7 @@ jobs:
- name: Create Check
uses: LouisBrunner/[email protected]
id: check

if: steps.commit.outputs.sha
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: in_progress
Expand All @@ -216,7 +217,7 @@ jobs:
output: ${{ steps.check-output.outputs.result }}
- name: Conclude Check
uses: LouisBrunner/[email protected]
if: always()
if: needs.release.outputs.check-id && always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ job.status }}
Expand Down Expand Up @@ -254,7 +255,7 @@ jobs:
echo "::set-output name=result::$result"
- name: Conclude Check
uses: LouisBrunner/[email protected]
if: always()
if: needs.update.outputs.check-id && always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ steps.needs-result.outputs.result }}
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"tap": "^16.0.1"
},
"author": "GitHub Inc.",
Expand All @@ -58,7 +58,7 @@
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"ciVersions": "latest",
"engines": "^14.17.0 || ^16.13.0 || >=18.0.0",
"version": "4.6.2",
"version": "4.7.1",
"content": "../scripts/template-oss/index.js"
}
}
36 changes: 18 additions & 18 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
"@npmcli/fs": "^3.0.0",
"@npmcli/git": "^4.0.1",
"@npmcli/promise-spawn": "^5.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"licensee": "^8.2.0",
"nock": "^13.2.4",
"npm-packlist": "^7.0.1",
Expand Down Expand Up @@ -195,7 +195,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"tap": "^16.0.1"
},
"engines": {
Expand Down Expand Up @@ -2365,9 +2365,9 @@
}
},
"node_modules/@npmcli/template-oss": {
"version": "4.6.2",
"resolved": "https://registry.npmjs.org/@npmcli/template-oss/-/template-oss-4.6.2.tgz",
"integrity": "sha512-DNFvLfh10McWruYmvulHFC/RjGZ/frFpecl0fBPPF+B3qvJn6jcKRt8///IWl+D+KS/aQKKx9o7bqtQWUjQ9ug==",
"version": "4.7.1",
"resolved": "https://registry.npmjs.org/@npmcli/template-oss/-/template-oss-4.7.1.tgz",
"integrity": "sha512-nzMGV+y/hLAQs6Eu4aXvLt0FBCTJAuinfUnXJRg+u+wJI0TB/ytbhArVEjQCyMPz16RNVbYixRocjfsKoU9y5w==",
"dev": true,
"hasInstallScript": true,
"dependencies": {
Expand Down Expand Up @@ -14024,7 +14024,7 @@
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/promise-spawn": "^5.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"minify-registry-metadata": "^2.2.0",
"rimraf": "^3.0.2",
"tap": "^16.0.1",
Expand Down Expand Up @@ -14079,7 +14079,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"benchmark": "^2.1.4",
"chalk": "^4.1.0",
"minify-registry-metadata": "^2.1.0",
Expand All @@ -14100,7 +14100,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"nock": "^13.2.4",
"tap": "^16.0.1"
},
Expand All @@ -14124,7 +14124,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"tap": "^16.0.1"
},
"engines": {
Expand All @@ -14150,7 +14150,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"bin-links": "^4.0.1",
"minify-registry-metadata": "^2.2.0",
"mkdirp": "^1.0.4",
Expand All @@ -14168,7 +14168,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"tap": "^16.0.1"
},
"engines": {
Expand All @@ -14184,7 +14184,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"nock": "^13.2.4",
"tap": "^16.0.1"
},
Expand All @@ -14201,7 +14201,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"minipass": "^3.1.1",
"nock": "^13.2.4",
"tap": "^16.0.1"
Expand All @@ -14221,7 +14221,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"nock": "^13.0.7",
"spawk": "^1.7.1",
"tap": "^16.0.1"
Expand All @@ -14242,7 +14242,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"libnpmpack": "^5.0.1",
"lodash.clonedeep": "^4.5.0",
"nock": "^13.2.4",
Expand All @@ -14260,7 +14260,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"nock": "^13.2.4",
"tap": "^16.0.1"
},
Expand All @@ -14277,7 +14277,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"nock": "^13.2.4",
"tap": "^16.0.1"
},
Expand All @@ -14297,7 +14297,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"require-inject": "^1.4.4",
"tap": "^16.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
"@npmcli/fs": "^3.0.0",
"@npmcli/git": "^4.0.1",
"@npmcli/promise-spawn": "^5.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"licensee": "^8.2.0",
"nock": "^13.2.4",
"npm-packlist": "^7.0.1",
Expand Down Expand Up @@ -254,7 +254,7 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.6.2",
"version": "4.7.1",
"content": "./scripts/template-oss/root.js"
},
"license": "Artistic-2.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/template-oss/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
smoke-publish:
{{> jobMatrix
jobName="Smoke Publish"
jobCheck=(obj sha="${{ inputs.check-sha }}")
jobCheck=(obj sha="inputs.check-sha")
jobCheckout=(obj ref="${{ inputs.ref }}")
windowsCI=false
}}
Expand Down
4 changes: 2 additions & 2 deletions smoke-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/promise-spawn": "^5.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"minify-registry-metadata": "^2.2.0",
"rimraf": "^3.0.2",
"tap": "^16.0.1",
Expand All @@ -30,7 +30,7 @@
"license": "ISC",
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.6.2",
"version": "4.7.1",
"content": "../scripts/template-oss/index.js"
},
"tap": {
Expand Down
4 changes: 2 additions & 2 deletions workspaces/arborist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"@npmcli/template-oss": "4.7.1",
"benchmark": "^2.1.4",
"chalk": "^4.1.0",
"minify-registry-metadata": "^2.1.0",
Expand Down Expand Up @@ -102,7 +102,7 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.6.2",
"version": "4.7.1",
"content": "../../scripts/template-oss/index.js"
}
}
Loading

0 comments on commit 2293fb2

Please sign in to comment.