Skip to content

Commit

Permalink
chore: update template-oss
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Nov 18, 2023
1 parent bd2fde9 commit 8ff0318
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 24 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:

jobs:
publish:
name: Check Publish
runs-on: ubuntu-latest
defaults:
run:
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ jobs:
const runUrl = `https://github.com/${owner}/${repo}/actions/runs/${runId}`
return [
'## Release Workflow\n'
'## Release Workflow\n',
...releases.map(r => `- \`${r.pkgName}@${r.version}\` ${r.url}`),
`- Workflow run: :arrows_counterclockwise: ${runUrl}`
`- Workflow run: :arrows_counterclockwise: ${runUrl}`,
].join('\n')
- name: Create Release PR Comment
id: create-comment
Expand Down Expand Up @@ -286,14 +286,16 @@ jobs:
result-encoding: string
script: |
const { RESULT, BODY } = process.env
let body = BODY.replace(/Workflow run: :[a-z_]+:/, `Workflow run: :${RESULT}:`)
const body = BODY.replace(/(Workflow run: :)[a-z_]+(:)/, `$1${RESULT}$2`)
const append = []
if (RESULT !== 'white_check_mark') {
body += `\n\n:rotating_light:`
body += ` @npm/cli-team: The post-release workflow failed for this release.`
body += ` Manual steps may need to be taken after examining the workflow output`
body += ` from the above workflow run. :rotating_light:`
append.push(':rotating_light:')
append.push('@npm/cli-team:')
append.push('The post-release workflow failed for this release.')
append.push('Manual steps may need to be taken after examining the workflow output from the above workflow run.')
append.push(':rotating_light:')
}
return body
return [body, append.join(' ')].join('\n\n').trim()
- name: Update Release PR Comment
if: steps.comment-text.outputs.result
uses: peter-evans/create-or-update-comment@v3
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
],
"devDependencies": {
"@npmcli/eslint-config": "^4.0.1",
"@npmcli/template-oss": "file:scripts/npmcli-template-oss-31058.tgz",
"@npmcli/template-oss": "file:scripts/npmcli-template-oss-23566.tgz",
"tap": "^16.3.4"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion pkg1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.1",
"@npmcli/template-oss": "file:../scripts/npmcli-template-oss-31058.tgz",
"@npmcli/template-oss": "file:../scripts/npmcli-template-oss-23566.tgz",
"pkg2": "^5.0.1",
"tap": "^16.3.4"
},
Expand Down
2 changes: 1 addition & 1 deletion pkg2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.1",
"@npmcli/template-oss": "file:../scripts/npmcli-template-oss-31058.tgz",
"@npmcli/template-oss": "file:../scripts/npmcli-template-oss-23566.tgz",
"tap": "^16.3.4"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion pkg3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.1",
"@npmcli/template-oss": "file:../scripts/npmcli-template-oss-31058.tgz",
"@npmcli/template-oss": "file:../scripts/npmcli-template-oss-23566.tgz",
"tap": "^16.3.4"
},
"tap": {
Expand Down
Binary file added scripts/npmcli-template-oss-23566.tgz
Binary file not shown.
Binary file removed scripts/npmcli-template-oss-31058.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion workspaces/arbitrary-name/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.1",
"@npmcli/template-oss": "file:../../scripts/npmcli-template-oss-31058.tgz",
"@npmcli/template-oss": "file:../../scripts/npmcli-template-oss-23566.tgz",
"tap": "^16.3.4"
},
"tap": {
Expand Down
2 changes: 1 addition & 1 deletion workspaces/not-the-name/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.1",
"@npmcli/template-oss": "file:../../scripts/npmcli-template-oss-31058.tgz",
"@npmcli/template-oss": "file:../../scripts/npmcli-template-oss-23566.tgz",
"tap": "^16.3.4"
},
"tap": {
Expand Down
2 changes: 1 addition & 1 deletion workspaces/pkg6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.1",
"@npmcli/template-oss": "file:../../scripts/npmcli-template-oss-31058.tgz",
"@npmcli/template-oss": "file:../../scripts/npmcli-template-oss-23566.tgz",
"tap": "^16.3.4"
},
"tap": {
Expand Down

0 comments on commit 8ff0318

Please sign in to comment.