@npmcli/template-oss 4.19.0 → 4.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +15 -11
  2. package/bin/release-manager.js +6 -0
  3. package/lib/config.js +95 -117
  4. package/lib/content/{_job-matrix.yml → _job-matrix-yml.hbs} +1 -1
  5. package/lib/content/{_job-release-integration.yml → _job-release-integration-yml.hbs} +1 -1
  6. package/lib/content/{_job.yml → _job-yml.hbs} +1 -1
  7. package/lib/content/_step-node-yml.hbs +60 -0
  8. package/lib/content/_steps-setup-yml.hbs +6 -0
  9. package/lib/content/{audit.yml → audit-yml.hbs} +2 -2
  10. package/lib/content/{ci-release.yml → ci-release-yml.hbs} +6 -6
  11. package/lib/content/ci-yml.hbs +13 -0
  12. package/lib/content/{codeql-analysis.yml → codeql-analysis-yml.hbs} +1 -1
  13. package/lib/content/{eslintrc.js → eslintrc-js.hbs} +11 -1
  14. package/lib/content/{gitignore → gitignore.hbs} +2 -0
  15. package/lib/content/index.js +43 -39
  16. package/lib/content/{pkg.json → package-json.hbs} +8 -4
  17. package/lib/content/{post-dependabot.yml → post-dependabot-yml.hbs} +1 -1
  18. package/lib/content/{pull-request.yml → pull-request-yml.hbs} +1 -1
  19. package/lib/content/{release.yml → release-yml.hbs} +10 -10
  20. package/lib/content/tsconfig-json.hbs +17 -0
  21. package/lib/util/files.js +29 -20
  22. package/lib/util/get-cmd-path.js +36 -0
  23. package/lib/util/git.js +6 -2
  24. package/lib/util/import-or-require.js +29 -0
  25. package/lib/util/parser.js +6 -1
  26. package/lib/util/path.js +13 -0
  27. package/lib/util/template.js +9 -6
  28. package/package.json +10 -10
  29. package/lib/content/_step-node.yml +0 -57
  30. package/lib/content/_steps-setup.yml +0 -6
  31. package/lib/content/ci.yml +0 -13
  32. /package/lib/content/{CODEOWNERS → CODEOWNERS.hbs} +0 -0
  33. /package/lib/content/{CODE_OF_CONDUCT.md → CODE_OF_CONDUCT-md.hbs} +0 -0
  34. /package/lib/content/{CONTRIBUTING.md → CONTRIBUTING-md.hbs} +0 -0
  35. /package/lib/content/{LICENSE.md → LICENSE-md.hbs} +0 -0
  36. /package/lib/content/{SECURITY.md → SECURITY-md.hbs} +0 -0
  37. /package/lib/content/{_on-ci.yml → _on-ci-yml.hbs} +0 -0
  38. /package/lib/content/{_step-audit.yml → _step-audit-yml.hbs} +0 -0
  39. /package/lib/content/{_step-checks.yml → _step-checks-yml.hbs} +0 -0
  40. /package/lib/content/{_step-deps.yml → _step-deps-yml.hbs} +0 -0
  41. /package/lib/content/{_step-git.yml → _step-git-yml.hbs} +0 -0
  42. /package/lib/content/{_step-lint.yml → _step-lint-yml.hbs} +0 -0
  43. /package/lib/content/{_step-test.yml → _step-test-yml.hbs} +0 -0
  44. /package/lib/content/{bug.yml → bug-yml.hbs} +0 -0
  45. /package/lib/content/{commitlintrc.js → commitlintrc-js.hbs} +0 -0
  46. /package/lib/content/{config.yml → config-yml.hbs} +0 -0
  47. /package/lib/content/{dependabot.yml → dependabot-yml.hbs} +0 -0
  48. /package/lib/content/{npmrc → npmrc.hbs} +0 -0
  49. /package/lib/content/{release-please-config.json → release-please-config-json.hbs} +0 -0
  50. /package/lib/content/{release-please-manifest.json → release-please-manifest-json.hbs} +0 -0
  51. /package/lib/content/{settings.yml → settings-yml.hbs} +0 -0
  52. /package/lib/content/{tap.json → tap-json.hbs} +0 -0
@@ -1,57 +0,0 @@
1
- - name: Setup Node
2
- uses: actions/setup-node@v3
3
- id: node
4
- with:
5
- node-version: {{#if jobIsMatrix}}$\{{ matrix.node-version }}{{else}}{{ last ciVersions }}{{/if}}
6
- check-latest: contains({{#if jobIsMatrix}}matrix.node-version{{else}}'{{ last ciVersions }}'{{/if}}, '.x')
7
- {{#if lockfile}}
8
- cache: npm
9
- {{/if}}
10
-
11
- {{#if updateNpm}}
12
- # node 10/12/14 ship with npm@6, which is known to fail when updating itself in windows
13
- - name: Update Windows npm
14
- if: |
15
- matrix.platform.os == 'windows-latest' && (
16
- startsWith(steps.node.outputs.node-version, 'v10.') || startsWith(steps.node.outputs.node-version, 'v12.') || startsWith(steps.node.outputs.node-version, 'v14.')
17
- )
18
- run: |
19
- curl -sO https://registry.npmjs.org/npm/-/npm-7.5.4.tgz
20
- tar xf npm-7.5.4.tgz
21
- cd package
22
- node lib/npm.js install --no-fund --no-audit -g ..\npm-7.5.4.tgz
23
- cd ..
24
- rmdir /s /q package
25
-
26
- # Start on Node 10 because we dont test on anything lower
27
- - name: Install npm@7 on Node 10
28
- shell: bash
29
- if: startsWith(steps.node.outputs.node-version, 'v10.')
30
- id: npm-7
31
- run: |
32
- npm i --prefer-online --no-fund --no-audit -g npm@7
33
- echo "updated=true" >> "$GITHUB_OUTPUT"
34
-
35
- - name: Install npm@8 on Node 12
36
- shell: bash
37
- if: startsWith(steps.node.outputs.node-version, 'v12.')
38
- id: npm-8
39
- run: |
40
- npm i --prefer-online --no-fund --no-audit -g npm@8
41
- echo "updated=true" >> "$GITHUB_OUTPUT"
42
-
43
- - name: Install npm@9 on Node 14/16/18.0
44
- shell: bash
45
- if: startsWith(steps.node.outputs.node-version, 'v14.') || startsWith(steps.node.outputs.node-version, 'v16.') || startsWith(steps.node.outputs.node-version, 'v18.0.')
46
- id: npm-9
47
- run: |
48
- npm i --prefer-online --no-fund --no-audit -g npm@9
49
- echo "updated=true" >> "$GITHUB_OUTPUT"
50
-
51
- - name: Install npm@latest on Node
52
- if: $\{{ !(steps.npm-7.outputs.updated || steps.npm-8.outputs.updated || steps.npm-9.outputs.updated) }}
53
- run: npm i --prefer-online --no-fund --no-audit -g npm@latest
54
-
55
- - name: npm Version
56
- run: npm -v
57
- {{/if}}
@@ -1,6 +0,0 @@
1
- {{~#if jobCheck}}{{> stepChecks }}{{/if}}
2
- {{~#unless jobSkipSetup}}
3
- {{> stepGit }}
4
- {{> stepNode }}
5
- {{> stepDeps }}
6
- {{/unless}}
@@ -1,13 +0,0 @@
1
- name: CI {{~#if isWorkspace}} - {{ pkgName }}{{/if}}
2
-
3
- on:
4
- {{> onCi }}
5
-
6
- jobs:
7
- lint:
8
- {{> job jobName="Lint" }}
9
- {{> stepLint jobRunFlags=pkgFlags }}
10
-
11
- test:
12
- {{> jobMatrix jobName="Test" }}
13
- {{> stepTest jobRunFlags=pkgFlags }}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes