Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 455f681

Browse files
committed
removing potentially unneeded step
1 parent 94379f5 commit 455f681

2 files changed

Lines changed: 50 additions & 10 deletions

File tree

config.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,16 @@ steps:
106106
# data:
107107
# issueUrl: "%actions.devEnv.data.html_url%"
108108

109-
- title: Install an editor and Node.js along with required packages
110-
description: Installing the necessary tools and begin writing an Action
111-
event: pull_request.closed # Change this to when the pr is merged
112-
actions:
113-
- type: respond
114-
with: install-tools.md
115-
issue: Setting up your development environment
116-
- type: respond
117-
with: 04_configure-env.md
118-
issue: Setting up your development environment
109+
# - title: Install an editor and Node.js along with required packages
110+
# description: Installing the necessary tools and begin writing an Action
111+
# event: pull_request.closed # Change this to when the pr is merged
112+
# actions:
113+
# - type: respond
114+
# with: install-tools.md
115+
# issue: Setting up your development environment
116+
# - type: respond
117+
# with: 04_configure-env.md
118+
# issue: Setting up your development environment
119119

120120
- title: Creating the Action metadata
121121
description: Create an action.yml file and add necessary metatdata for our Action

responses/dev-env.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,43 @@ I find writing Actions to be easier from a local environment vs trying to do eve
88

99
If you do not have a preferred environment then I suggest following along with me exactly as you see on the screen, which means you'll need to install [Visual Studio Code](https://code.visualstudio.com/).
1010

11+
## Don't forget to set up your workstation 😉
12+
13+
Most of your work going forward will take place away from your Learning Lab repository, so before continuing with the course ensure you have the following installed on your **local machine**.
14+
15+
1. [Node.js](https://nodejs.org)
16+
2. [Visual Studio Code](https://code.visualstudio.com/) or your editor of choice
17+
3. [Git](https://git-scm.com/)
18+
19+
20+
### :keyboard: Activity: Configure your environment
21+
22+
Now that you have all the necessary tools installed locally, follow these steps to ensure your environment is configured and ready for Actions.
23+
24+
1. Open the **Terminal** (Mac and Linux) or **Command Prompt** (Windows) on your local machine
25+
2. Clone your Learning Lab repo to your local machine:
26+
`git clone https://{{repoUrl}}.git`
27+
<details><summary>View GIF</summary><img src="https://media.giphy.com/media/YnvmISGo2MbXpn2bc5/giphy.gif" alt="git clone example" /></details>
28+
<!-- ![alt text](https://media.giphy.com/media/YnvmISGo2MbXpn2bc5/giphy.gif) -->
29+
30+
3. Navigate to the folder you just cloned:
31+
`cd writing-javacript-actions`
32+
<details><summary>View GIF</summary><img src="https://media.giphy.com/media/duA6JVCuXbt5gKqNLw/giphy.gif" alt="directory navigation" /></details>
33+
<!-- ![alt text](https://media.giphy.com/media/duA6JVCuXbt5gKqNLw/giphy.gif) -->
34+
4. Create a new branch named `hello-world`. This is the branch we will use to write our first Action. **Please do not capitalize letters unless I do, I run case-sensitive checks to make sure I can help you along the way!**
35+
`git checkout -b hello-world`
36+
<details><summary>View GIF</summary><img src="https://media.giphy.com/media/hvdeWGkjoy4UdfwbfQ/giphy.gif" alt="git checkout example" /></details>
37+
38+
5. Create a new folder for our Actions files:
39+
`mkdir -p .github/actions/hello-world`
40+
6. Navigate to the `hello-world` folder you just created:
41+
`cd .github/actions/hello-world`
42+
7. Initialize the a new project with `npm init -y`
43+
8. Install the **core** and **github** dependencies from the [GitHub ToolKit](https://github.com/actions/toolkit) by typing `npm install --save @actions/core @actions/github`
44+
9. Commit those newly added files, including `node_modules`, we will remove the need to upload `node_modules` in a later step
45+
10. Push you changes to your repository:
46+
`git push -u origin hello-world`
47+
11. Create a new pull request from the `hello-world` branch to `master` with the title of `Hello Actions`
48+
- Take notice that the pull request name `Hello Actions` is case-sensitive
49+
50+
I will close this issue and continue responding to you in the `hello-actions` pull request once you have created it.

0 commit comments

Comments
 (0)