Skip to content

Commit 1f09da9

Browse files
committed
chore: postinstall for dependabot template-oss PR
1 parent 69f42cb commit 1f09da9

File tree

8 files changed

+17
-13
lines changed

8 files changed

+17
-13
lines changed

.github/actions/create-check/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
2525
with:
2626
result-encoding: string
2727
script: |
28-
const { repo: { owner, repo}, runId, serverUrl } = context
28+
const { repo: { owner, repo}, runId, serverUrl } = context
2929
const { JOB_NAME, SHA } = process.env
3030
3131
const job = await github.rest.actions.listJobsForWorkflowRun({

.github/actions/install-latest-npm/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ runs:
4444
MATCH=$SPEC
4545
echo "Found compatible version: npm@$MATCH"
4646
break
47-
fi
47+
fi
4848
done
4949
5050
if [ -z $MATCH ]; then

.github/workflows/ci-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
run: npm run postlint --ignore-scripts
6262
- name: Conclude Check
6363
uses: LouisBrunner/[email protected]
64-
if: always()
64+
if: steps.create-check.outputs.check-id && always()
6565
with:
6666
token: ${{ secrets.GITHUB_TOKEN }}
6767
conclusion: ${{ job.status }}
@@ -151,7 +151,7 @@ jobs:
151151
run: npm test --ignore-scripts
152152
- name: Conclude Check
153153
uses: LouisBrunner/[email protected]
154-
if: always()
154+
if: steps.create-check.outputs.check-id && always()
155155
with:
156156
token: ${{ secrets.GITHUB_TOKEN }}
157157
conclusion: ${{ job.status }}

.github/workflows/post-dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
id: flags
5050
run: |
5151
dependabot_dir="${{ steps.metadata.outputs.directory }}"
52-
if [[ "$dependabot_dir" == "/" ]]; then
52+
if [[ "$dependabot_dir" == "/" || "$dependabot_dir" == "/main" ]]; then
5353
echo "workspace=-iwr" >> $GITHUB_OUTPUT
5454
else
5555
# strip leading slash from directory so it works as a

.github/workflows/release-integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
- name: Install Dependencies
4444
run: npm i --ignore-scripts --no-audit --no-fund
4545
- name: Check If Published
46+
env:
47+
RELEASES: ${{ inputs.releases }}
4648
run: |
4749
EXIT_CODE=0
4850

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
# ignore everything in the root
44
/*
5-
# transient test directories
6-
tap-testdir*/
75

8-
# keep these
96
!**/.gitignore
107
!/.commitlintrc.js
118
!/.eslintrc.js
129
!/.eslintrc.local.*
10+
!/.git-blame-ignore-revs
1311
!/.github/
1412
!/.gitignore
1513
!/.npmrc
14+
!/.prettierignore
15+
!/.prettierrc.js
1616
!/.release-please-manifest.json
1717
!/bin/
1818
!/CHANGELOG*
@@ -30,3 +30,4 @@ tap-testdir*/
3030
!/tap-snapshots/
3131
!/test/
3232
!/tsconfig.json
33+
tap-testdir*/

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
GitHub takes the security of our software products and services seriously, including the open source code repositories managed through our GitHub organizations, such as [GitHub](https://github.com/GitHub).
44

5-
If you believe you have found a security vulnerability in this GitHub-owned open source repository, you can report it to us in one of two ways.
5+
If you believe you have found a security vulnerability in this GitHub-owned open source repository, you can report it to us in one of two ways.
66

77
If the vulnerability you have found is *not* [in scope for the GitHub Bug Bounty Program](https://bounty.github.com/#scope) or if you do not wish to be considered for a bounty reward, please report the issue to us directly through [[email protected]](mailto:[email protected]).
88

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
},
1212
"scripts": {
1313
"test": "tap",
14-
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
14+
"lint": "npm run eslint",
1515
"postlint": "template-oss-check",
1616
"template-oss-apply": "template-oss-apply --force",
17-
"lintfix": "npm run lint -- --fix",
17+
"lintfix": "npm run eslint -- --fix",
1818
"snap": "tap",
19-
"posttest": "npm run lint"
19+
"posttest": "npm run lint",
20+
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
2021
},
2122
"tap": {
2223
"check-coverage": true,
@@ -41,6 +42,6 @@
4142
},
4243
"templateOSS": {
4344
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
44-
"version": "4.22.0"
45+
"version": "4.23.1"
4546
}
4647
}

0 commit comments

Comments
 (0)