Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: yeoman/generator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.18.4
Choose a base ref
...
head repository: yeoman/generator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Dec 21, 2014

  1. Copy the full SHA
    f3e0f7a View commit details
  2. Fix conflicter to allow skipping

    Fix #725
    SBoudrias committed Dec 21, 2014
    Copy the full SHA
    3249643 View commit details
  3. Copy the full SHA
    014413d View commit details
  4. Copy the full SHA
    c871e97 View commit details
  5. 0.18.5

    SBoudrias committed Dec 21, 2014
    Copy the full SHA
    f6b8025 View commit details

Commits on Jan 2, 2015

  1. Copy the full SHA
    c256684 View commit details
  2. 0.18.6

    SBoudrias committed Jan 2, 2015
    Copy the full SHA
    5f09682 View commit details
  3. Disable eslint

    SBoudrias committed Jan 2, 2015
    Copy the full SHA
    d179e68 View commit details

Commits on Jan 6, 2015

  1. Fix some comments

    SBoudrias committed Jan 6, 2015
    Copy the full SHA
    0d4cf09 View commit details
  2. Removing functionnality allowing env to pass a template engine

    Rationale: Template engine are only related to the generator itself. The
    environment shouldn't have any control on it (it just doesn't make
    sense)
    SBoudrias committed Jan 6, 2015
    4
    Copy the full SHA
    566ab33 View commit details
  3. Copy the full SHA
    cbbf035 View commit details
  4. Copy the full SHA
    cd0eb2a View commit details
  5. Copy the full SHA
    cb30406 View commit details
  6. Copy the full SHA
    f47c52d View commit details
  7. Fix some code styling

    SBoudrias committed Jan 6, 2015
    Copy the full SHA
    7c4e1c8 View commit details
  8. Remove Base#run() args parameter

    Reason: Generators are self contained, it doesn't make sense for
    external source to modify the arguments it's methods takes.
    SBoudrias committed Jan 6, 2015
    Copy the full SHA
    d4f5ebc View commit details
  9. Copy the full SHA
    30ed576 View commit details
  10. Use mem-fs when determining the appname

    Side note: this change uncovered a bug in the base test. The resolved
    property must be the path of the generator in use - not a relative path
    or the destination path.
    SBoudrias committed Jan 6, 2015
    Copy the full SHA
    8e9e5ae View commit details
  11. Copy the full SHA
    72d8689 View commit details

Commits on Jan 9, 2015

  1. Copy the full SHA
    4fd4064 View commit details
  2. Merge pull request #732 from eddiemonge/language

    update some language and internal variable names
    SBoudrias committed Jan 9, 2015
    Copy the full SHA
    beee56c View commit details

Commits on Jan 11, 2015

  1. bump deps

    sindresorhus committed Jan 11, 2015
    Copy the full SHA
    8b8b6f2 View commit details

Commits on Jan 12, 2015

  1. Grammar Changes

    Made a few grammar changes to help improve the readability of the doc.
    peerwit committed Jan 12, 2015
    Copy the full SHA
    aea2fe6 View commit details
  2. Merge pull request #734 from peerwit/master

    Grammar Changes
    kevva committed Jan 12, 2015
    Copy the full SHA
    0f1bfa9 View commit details

Commits on Jan 16, 2015

  1. Fix conflicter by giving a buffer to detect-conflict

    detect-conflict dependency handles buffers properly, so this toString() call is not required anymore and cause false positive on conflicter.
    
    Close #717
    Toilal committed Jan 16, 2015
    Copy the full SHA
    94b4cf2 View commit details
  2. Merge pull request #736 from Toilal/fix/conflicter-717

    Fix conflicter by removing toString() call
    SBoudrias committed Jan 16, 2015
    Copy the full SHA
    03c0ca3 View commit details

Commits on Jan 17, 2015

  1. Fix help output test

    Toilal committed Jan 17, 2015
    Copy the full SHA
    ab2bbd2 View commit details
  2. Copy the full SHA
    cc71277 View commit details
  3. Merge pull request #740 from Toilal/chore/gulp-test-ret

    Make gulp test task fails when some test fails
    sindresorhus committed Jan 17, 2015
    Copy the full SHA
    d3dafae View commit details
  4. Merge pull request #739 from Toilal/fix/test-expected-help

    Fix help output test
    sindresorhus committed Jan 17, 2015
    Copy the full SHA
    45bb7a5 View commit details

Commits on Jan 18, 2015

  1. Copy the full SHA
    bef92f8 View commit details
  2. Merge pull request #738 from Toilal/feat/istextorbinary

    Replace isbinaryfile with istextorbinary
    SBoudrias committed Jan 18, 2015
    Copy the full SHA
    697ecb2 View commit details

Commits on Jan 20, 2015

  1. Copy the full SHA
    8ef311d View commit details
  2. style tweaks

    sindresorhus committed Jan 20, 2015
    Copy the full SHA
    66df157 View commit details
  3. 1
    Copy the full SHA
    b611741 View commit details

Commits on Jan 21, 2015

  1. Copy the full SHA
    489db88 View commit details

Commits on Jan 22, 2015

  1. Copy the full SHA
    13142a3 View commit details
  2. Copy the full SHA
    a19cb28 View commit details
  3. 0.18.7

    SBoudrias committed Jan 22, 2015
    Copy the full SHA
    461a181 View commit details

Commits on Jan 23, 2015

  1. Copy the full SHA
    f8b7f3e View commit details

Commits on Jan 25, 2015

  1. Merge pull request #737 from Toilal/feat/binary-diff

    Use a custom diff view for binary files
    SBoudrias committed Jan 25, 2015
    Copy the full SHA
    79e882e View commit details

Commits on Feb 6, 2015

  1. Copy the full SHA
    3726d30 View commit details
  2. Copy the full SHA
    9634399 View commit details

Commits on Feb 8, 2015

  1. Update .travis.yml

    sindresorhus committed Feb 8, 2015
    Copy the full SHA
    e33a28d View commit details
  2. Without ensuring opt is an object, spawnCommand hangs and does not ex…

    …ecute
    Robert-Frampton authored and SBoudrias committed Feb 8, 2015
    Copy the full SHA
    1059528 View commit details
  3. Add test for spawn command

    SBoudrias committed Feb 8, 2015
    Copy the full SHA
    c8495ad View commit details
  4. Copy the full SHA
    b30da7c View commit details
  5. jshint annotations

    SBoudrias committed Feb 8, 2015
    Copy the full SHA
    7932158 View commit details
  6. 0.18.8

    SBoudrias committed Feb 8, 2015
    Copy the full SHA
    6ac0b21 View commit details

Commits on Feb 9, 2015

  1. work on #742 withLocalConfig - revert to basic implementation

    Jonathan Grupp committed Feb 9, 2015
    Copy the full SHA
    4c4da61 View commit details
Showing with 19,045 additions and 12,261 deletions.
  1. +0 −1 .editorconfig
  2. +0 −40 .eslintrc
  3. +1 −0 .gitattributes
  4. +7 −0 .github/ISSUE_TEMPLATE/bug_report.md
  5. +1 −0 .github/ISSUE_TEMPLATE/config.yml
  6. +7 −0 .github/ISSUE_TEMPLATE/feature_request.md
  7. +30 −0 .github/workflows/ci.yml
  8. +73 −0 .github/workflows/codeql.yml
  9. +22 −0 .github/workflows/dependency-review.yml
  10. +75 −0 .github/workflows/gh_pages.yml
  11. +69 −0 .github/workflows/integration.yml
  12. +34 −0 .github/workflows/lock-maintenance.yml
  13. +76 −0 .github/workflows/scorecards.yml
  14. +23 −0 .github/workflows/stale.yml
  15. +6 −4 .gitignore
  16. +0 −28 .jscsrc
  17. +0 −1 .jshintignore
  18. +0 −16 .jshintrc
  19. +3 −0 .mocharc.cjs
  20. +0 −9 .npmignore
  21. +4 −0 .prettierignore
  22. +5 −0 .prettierignore-doc
  23. +16 −0 .prettierrc
  24. +0 −6 .travis.yml
  25. +23 −0 .vscode/launch.json
  26. +11 −0 .vscode/settings.json
  27. +35 −0 .xo-config.json
  28. +22 −0 LICENSE
  29. +0 −9 benchmark/module.js
  30. +14 −0 eslint.config.js
  31. +0 −62 gulpfile.js
  32. +0 −80 index.js
  33. +17 −5 jsdoc.json
  34. +0 −290 lib/actions/actions.js
  35. +0 −78 lib/actions/fetch.js
  36. +0 −54 lib/actions/file.js
  37. +0 −149 lib/actions/help.js
  38. +0 −159 lib/actions/install.js
  39. +0 −37 lib/actions/invoke.js
  40. +0 −191 lib/actions/remote.js
  41. +0 −18 lib/actions/spawn_command.js
  42. +0 −23 lib/actions/string.js
  43. +0 −66 lib/actions/user.js
  44. +0 −289 lib/actions/wiring.js
  45. +0 −793 lib/base.js
  46. +0 −22 lib/named-base.js
  47. +0 −82 lib/test/adapter.js
  48. +0 −278 lib/test/helpers.js
  49. +0 −205 lib/test/run-context.js
  50. +0 −25 lib/util/common.js
  51. +0 −183 lib/util/conflicter.js
  52. +0 −49 lib/util/engines.js
  53. +0 −177 lib/util/prompt-suggestion.js
  54. +0 −137 lib/util/storage.js
  55. +9,883 −0 package-lock.json
  56. +84 −55 package.json
  57. +109 −34 readme.md
  58. +365 −0 src/actions/fs.ts
  59. +123 −0 src/actions/help.ts
  60. +733 −0 src/actions/lifecycle.ts
  61. +75 −0 src/actions/package-json.ts
  62. +152 −0 src/actions/spawn-command.ts
  63. +56 −0 src/actions/user.ts
  64. +3 −0 src/constants.ts
  65. +843 −0 src/generator.ts
  66. +52 −0 src/index.ts
  67. +36 −0 src/questions.d.ts
  68. +35 −0 src/types-utils.d.ts
  69. +182 −0 src/types.d.ts
  70. +43 −0 src/util/deprecate.js
  71. +210 −0 src/util/prompt-suggestion.ts
  72. +334 −0 src/util/storage.ts
  73. +0 −12 test/.jshintrc
  74. +0 −390 test/actions.js
  75. +0 −951 test/base.js
  76. +2,005 −0 test/base.test.ts
  77. +0 −130 test/conflicter.js
  78. +230 −0 test/deprecate.test.ts
  79. +220 −0 test/environment.test.ts
  80. +0 −55 test/fetch.js
  81. +0 −1 test/fixtures/append-prepend-to-file.html
  82. +1 −1 test/fixtures/config.json
  83. +1 −0 test/fixtures/conflict.js
  84. +0 −6 test/fixtures/css_block.html
  85. +0 −6 test/fixtures/css_block_dir.html
  86. +0 −12 test/fixtures/custom-generator-extend/package.json
  87. +0 −8 test/fixtures/custom-generator-extend/support/index.js
  88. +0 −16 test/fixtures/custom-generator-extend/support/scaffold/main.js
  89. +0 −26 test/fixtures/custom-generator-simple/main.js
  90. +0 −1 test/fixtures/custom-template-setting.xml
  91. 0 test/fixtures/dir-css-fixtures/file1.css
  92. 0 test/fixtures/dir-css-fixtures/file2.css
  93. +0 −1 test/fixtures/dir-fixtures/foo-process.js
  94. +0 −1 test/fixtures/dir-fixtures/foo.js
  95. +0 −1 test/fixtures/dummy-package/index.js
  96. +0 −3 test/fixtures/dummy-package/package.json
  97. +1 −0 test/fixtures/file-contains-utf8.yml
  98. +0 −1 test/fixtures/foo-process.js
  99. +0 −1 test/fixtures/fooooooo-file.js
  100. +24 −0 test/fixtures/generator-defaults/app/index.js
  101. +1 −0 test/fixtures/generator-defaults/app/options.js
  102. +9 −0 test/fixtures/generator-defaults/app/prompts.js
  103. +1 −0 test/fixtures/{dir-fixtures → generator-defaults/app/templates}/foo-template.js
  104. +16 −0 test/fixtures/generator-defaults/package-lock.json
  105. +3 −2 test/fixtures/{custom-generator-simple → generator-defaults}/package.json
  106. +29 −0 test/fixtures/generator-mocha/main.js
  107. +3 −2 test/fixtures/{mocha-generator-base → generator-mocha}/package.json
  108. +0 −14 test/fixtures/help.txt
  109. +0 −6 test/fixtures/js_block.html
  110. +0 −7 test/fixtures/js_block_dir.html
  111. +0 −6 test/fixtures/js_block_with_attr.html
  112. +0 −4,330 test/fixtures/lodash-copy.js
  113. +0 −7 test/fixtures/lookup-project/package.json
  114. +0 −6 test/fixtures/lookup-project/subdir/package.json
  115. +0 −18 test/fixtures/mocha-generator-base/main.js
  116. +0 −30 test/fixtures/mocha-generator/main.js
  117. +0 −12 test/fixtures/mocha-generator/package.json
  118. +10 −11 test/fixtures/options-generator/main.js
  119. +2 −1 test/fixtures/options-generator/package.json
  120. +0 −1 test/fixtures/template-setting.xml
  121. +0 −1 test/fixtures/template-tags.jst
  122. +0 −1 test/fixtures/template.jst
  123. +0 −1 test/fixtures/testFile
  124. +0 −1 test/fixtures/testFile2
  125. BIN test/fixtures/testRemoteFile.tar.gz
  126. +580 −0 test/fs.test.ts
  127. +354 −0 test/generators-compose-workflow.test.ts
  128. +0 −160 test/generators.js
  129. +147 −0 test/generators.test.ts
  130. +0 −35 test/generators/test-angular.js
  131. +0 −115 test/generators/test-backbone.js
  132. +0 −76 test/generators/test-bbb.js
  133. +0 −34 test/generators/test-ember-starter.js
  134. +0 −80 test/generators/test-ember.js
  135. +0 −26 test/generators/test-mocha-generator.js
  136. +0 −58 test/generators/test-quickstart.js
  137. +0 −18 test/generators/test-testacular-app.js
  138. +0 −235 test/helpers.js
  139. +0 −140 test/install.js
  140. +23 −0 test/integration.test.ts
  141. +0 −77 test/invoke.js
  142. +94 −0 test/package-json.test.ts
  143. +0 −295 test/prompt-suggestion.js
  144. +508 −0 test/prompt-suggestion.test.ts
  145. +0 −218 test/remote.js
  146. +0 −370 test/run-context.js
  147. +152 −0 test/spawn-command.test.ts
  148. +0 −246 test/storage.js
  149. +606 −0 test/storage.test.ts
  150. +0 −118 test/user.js
  151. +58 −0 test/user.test.ts
  152. +24 −0 test/utils.ts
  153. +0 −225 test/wiring.js
  154. +35 −0 tsconfig.json
  155. +8 −0 tsconfig.spec.json
  156. +8 −0 vitest.config.ts
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# editorconfig.org
root = true

[*]
40 changes: 0 additions & 40 deletions .eslintrc

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto
*.js text eol=lf
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: needs triage
assignees: ''
---
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: needs triage, enhancement
assignees: ''
---
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: NPM Test

on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:
branches:
- '*'

permissions:
contents: read

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18, 19, 20, 21, 22, 23]

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
73 changes: 73 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
schedule:
- cron: "0 0 * * 1"

permissions:
contents: read

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["javascript", "typescript"]
# CodeQL supports [ $supported-codeql-languages ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
with:
category: "/language:${{matrix.language}}"
22 changes: 22 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request,
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
# Once installed, if the workflow run is marked as required,
# PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
name: 'Dependency Review'
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Dependency Review'
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
75 changes: 75 additions & 0 deletions .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Update api docs
on:
push:
branches:
- docs
release:
types: [published]
workflow_dispatch:
inputs:
path:
description: 'Destination path to generate'
required: false

permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR

jobs:
build:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
name: Update api docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: source
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: gh-pages
path: yeoman-generator-doc
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: 16
- run: npm ci
working-directory: source
- name: Cleanup
working-directory: yeoman-generator-doc
run: rm *.html
- name: Generate doc
run: npm run doc
working-directory: source
env:
DOC_FOLDER: ${{ github.event.inputs.path }}
- name: Detect version
run: echo "::set-output name=version::$(node -e "console.log(require('./package.json').version);")"
working-directory: source
id: version
- name: Create commit
working-directory: yeoman-generator-doc
if: always()
run: |
git add .
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "Github Actions"
git diff --cached
git commit -a -m "Update api for ${{steps.version.outputs.version}}" || true
- name: Create Pull Request
if: always()
id: cpr
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Update api for ${{steps.version.outputs.version}}'
title: 'Update api for ${{steps.version.outputs.version}}'
body: |
Update api docs
labels: automated pr
branch: gh-pages-master
path: yeoman-generator-doc
- name: Check outputs
run: |
echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"
echo "Pull Request Number - ${{ steps.cpr.outputs.pr_number }}"
69 changes: 69 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Integration Build

on:
push:
branches-ignore:
- '*'
- 'dependabot/**'
pull_request:
branches:
- '*'

permissions:
contents: read

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [18]

steps:
- name: Checkout yeoman-test
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: yeoman/yeoman-test
path: yeoman-test

- name: Checkout yeoman-generator
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: yeoman-generator

- name: Checkout yeoman-environment
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: yeoman-environment

- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: ${{ matrix.node-version }}

- name: Run yeoman-test test
run: |
cd $GITHUB_WORKSPACE/yeoman-test
mv package.json package.json.original
jq 'del(.peerDependencies)' package.json.original > package.json
cat package.json
npm install
npm install ${{ github.repository }}#$GITHUB_SHA yeoman/environment#main
npm test
- name: Run yeoman-generator test
if: always()
run: |
cd $GITHUB_WORKSPACE/yeoman-generator
npm ci
npm install yeoman/yeoman-test#main yeoman/environment#main
npm test
- name: Run yeoman-environment test
if: always()
run: |
cd $GITHUB_WORKSPACE/yeoman-environment
npm ci
npm install yeoman-generator-7@${{ github.repository }}#$GITHUB_SHA yeoman/yeoman-test#main
npm test
34 changes: 34 additions & 0 deletions .github/workflows/lock-maintenance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Package lock maintenance
on:
workflow_dispatch:

permissions:
contents: read

jobs:
build:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
name: Bump transitional dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: '16'
cache: 'npm'
- name: Create commit
run: |
rm package-lock.json
npm install
- name: Create Pull Request
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Bump transitional dependencies'
committer: 'Github Actions <41898282+github-actions[bot]@users.noreply.github.com>'
author: 'Github Actions <41898282+github-actions[bot]@users.noreply.github.com>'
title: 'Bump transitional dependencies'
body: Transitional dependencies bump.
labels: 'dependencies'
Loading