From 471049334a7d6f88dbe0e669d2ded94f9c85c678 Mon Sep 17 00:00:00 2001 From: Tobi <22715034+tobi6112@users.noreply.github.com> Date: Fri, 3 Dec 2021 20:19:32 +0100 Subject: [PATCH 1/2] Change iconName to Optional (#12090) --- .../actions/learn-github-actions/creating-workflow-templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/learn-github-actions/creating-workflow-templates.md b/content/actions/learn-github-actions/creating-workflow-templates.md index 8e7d8c874a..9a6b5155fb 100644 --- a/content/actions/learn-github-actions/creating-workflow-templates.md +++ b/content/actions/learn-github-actions/creating-workflow-templates.md @@ -86,7 +86,7 @@ This procedure demonstrates how to create a workflow template and metadata file. ``` * `name` - **Required.** The name of the workflow template. This is displayed in the list of available templates. * `description` - **Required.** The description of the workflow template. This is displayed in the list of available templates. - * `iconName` - **Required.** Defines an icon for the workflow's entry in the template list. The `iconName` must be an SVG icon of the same name, and must be stored in the `workflow-templates` directory. For example, a SVG file named `example-icon.svg` is referenced as `example-icon`. + * `iconName` - **Optional.** Defines an icon for the workflow's entry in the template list. The `iconName` must be an SVG icon of the same name, and must be stored in the `workflow-templates` directory. For example, a SVG file named `example-icon.svg` is referenced as `example-icon`. * `categories` - **Optional.** Defines the language category of the workflow. When a user views the available templates, those templates that match the same language will feature more prominently. For information on the available language categories, see https://github.com/github/linguist/blob/master/lib/linguist/languages.yml. * `filePatterns` - **Optional.** Allows the template to be used if the user's repository has a file in its root directory that matches a defined regular expression. From 267cf250ecf92dfd4089af8c3aed7f3405689ee7 Mon Sep 17 00:00:00 2001 From: JenniferKiesel Date: Fri, 3 Dec 2021 20:28:49 +0100 Subject: [PATCH 2/2] Replace npm install with npm ci (#12148) --- .../publishing-packages/publishing-nodejs-packages.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/actions/publishing-packages/publishing-nodejs-packages.md b/content/actions/publishing-packages/publishing-nodejs-packages.md index e20bb852f5..d209f0bf65 100644 --- a/content/actions/publishing-packages/publishing-nodejs-packages.md +++ b/content/actions/publishing-packages/publishing-nodejs-packages.md @@ -78,7 +78,7 @@ jobs: with: node-version: '12.x' registry-url: 'https://registry.npmjs.org' - - run: npm install + - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -142,7 +142,7 @@ jobs: registry-url: 'https://npm.pkg.github.com' # Defaults to the user or organization that owns the workflow file scope: '@octocat' - - run: npm install + - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} @@ -224,7 +224,7 @@ jobs: with: node-version: '10.x' registry-url: 'https://registry.npmjs.org' - - run: npm install + - run: npm ci # Publish to npm - run: npm publish --access public env:{% raw %}