@pnp/cli-microsoft365 11.7.0-beta.293104a → 11.7.0-beta.71c58f3
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.
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/m365/outlook/commands/calendargroup/calendargroup-set.js +115 -0
- package/dist/m365/outlook/commands.js +1 -0
- package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +628 -0
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +2 -2
- package/dist/m365/spfx/commands/project/project-azuredevops-pipeline-add.js +13 -1
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +16 -1
- package/dist/m365/spfx/commands/spfx-doctor.js +5 -631
- package/dist/utils/spfx.js +59 -0
- package/docs/docs/cmd/entra/user/user-groupmembership-list.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-guest-add.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-password-validate.mdx +12 -0
- package/docs/docs/cmd/entra/user/user-recyclebinitem-clear.mdx +21 -0
- package/docs/docs/cmd/entra/user/user-recyclebinitem-list.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-recyclebinitem-remove.mdx +21 -0
- package/docs/docs/cmd/entra/user/user-recyclebinitem-restore.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-session-revoke.mdx +21 -0
- package/docs/docs/cmd/entra/user/user-signin-list.mdx +19 -0
- package/docs/docs/cmd/exo/approleassignment/approleassignment-add.mdx +19 -0
- package/docs/docs/cmd/file/convert/convert-pdf.mdx +21 -0
- package/docs/docs/cmd/file/file-add.mdx +21 -0
- package/docs/docs/cmd/file/file-copy.mdx +21 -0
- package/docs/docs/cmd/file/file-list.mdx +19 -0
- package/docs/docs/cmd/file/file-move.mdx +21 -0
- package/docs/docs/cmd/outlook/calendargroup/calendargroup-set.mdx +83 -0
- package/package.json +2 -1
|
@@ -13,6 +13,8 @@ import { validation } from '../../../../utils/validation.js';
|
|
|
13
13
|
import commands from '../../commands.js';
|
|
14
14
|
import { workflow } from './DeployWorkflow.js';
|
|
15
15
|
import { BaseProjectCommand } from './base-project-command.js';
|
|
16
|
+
import { versions } from '../SpfxCompatibilityMatrix.js';
|
|
17
|
+
import { spfx } from '../../../../utils/spfx.js';
|
|
16
18
|
class SpfxProjectGithubWorkflowAddCommand extends BaseProjectCommand {
|
|
17
19
|
get name() {
|
|
18
20
|
return commands.PROJECT_GITHUB_WORKFLOW_ADD;
|
|
@@ -43,7 +45,7 @@ class SpfxProjectGithubWorkflowAddCommand extends BaseProjectCommand {
|
|
|
43
45
|
this.saveWorkflow(workflow);
|
|
44
46
|
}
|
|
45
47
|
catch (error) {
|
|
46
|
-
|
|
48
|
+
this.handleError(error);
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
saveWorkflow(workflow) {
|
|
@@ -59,6 +61,16 @@ class SpfxProjectGithubWorkflowAddCommand extends BaseProjectCommand {
|
|
|
59
61
|
if (options.branchName) {
|
|
60
62
|
workflow.on.push.branches[0] = options.branchName;
|
|
61
63
|
}
|
|
64
|
+
const version = this.getProjectVersion();
|
|
65
|
+
if (!version) {
|
|
66
|
+
throw 'Unable to determine the version of the current SharePoint Framework project. Could not find the correct version based on the version property in the .yo-rc.json file.';
|
|
67
|
+
}
|
|
68
|
+
const versionRequirements = versions[version];
|
|
69
|
+
if (!versionRequirements) {
|
|
70
|
+
throw `Could not find Node version for version '${version}' of SharePoint Framework.`;
|
|
71
|
+
}
|
|
72
|
+
const nodeVersion = spfx.getHighestNodeVersion(versionRequirements.node.range);
|
|
73
|
+
this.assignNodeVersion(workflow, nodeVersion);
|
|
62
74
|
if (options.manuallyTrigger) {
|
|
63
75
|
// eslint-disable-next-line camelcase
|
|
64
76
|
workflow.on.workflow_dispatch = null;
|
|
@@ -83,6 +95,9 @@ class SpfxProjectGithubWorkflowAddCommand extends BaseProjectCommand {
|
|
|
83
95
|
deployAction.with.APP_FILE_PATH = deployAction.with.APP_FILE_PATH.replace('{{ solutionName }}', solutionName);
|
|
84
96
|
}
|
|
85
97
|
}
|
|
98
|
+
assignNodeVersion(workflow, nodeVersion) {
|
|
99
|
+
workflow.jobs['build-and-deploy'].env.NodeVersion = nodeVersion;
|
|
100
|
+
}
|
|
86
101
|
getLoginAction(workflow) {
|
|
87
102
|
const steps = this.getWorkFlowSteps(workflow);
|
|
88
103
|
return steps.find(step => step.uses && step.uses.indexOf('action-cli-login') >= 0);
|