feat: initial rewrite of the exercise #1
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the GitHub Skills Dad Jokes action course to use a modern, bundled JavaScript action structure with improved, step-by-step instructions. The changes guide learners through setting up a cloud-based development environment, writing modular source files, bundling the action, defining metadata, and creating a workflow to run and consume the action output. The instructions are clearer, more practical, and aligned with current best practices for GitHub Actions.
Course Content and Instructional Improvements:
1-step.md): Rewritten to emphasize using GitHub Codespaces for setup, initializing the Node.js project, installing dependencies, and ensuringnode_modules/is excluded from version control.2-step.md): Guides the learner to create modular source files (src/joke.js,src/main.js), run the action locally, and optionally debug using@github/local-actionand VS Code launch configuration.Action Packaging and Metadata:
3-step.md): Adds instructions to bundle the action using@vercel/ncc, updatingpackage.jsonwith a build script and generating adist/index.jsfile for distribution.4-step.md): Introduces creating a top-levelaction.ymlreferencing the bundled output, defining the action’s interface (name, description, outputs, runtime, main entry).Workflow Integration:
5-step.md): Provides a workflow example that triggers on issue comments, runs the Dad Jokes action, and posts the joke as a comment using the output.Cleanup and Minor Changes:
-step.txt,0-welcome.md). [1] [2]These updates make the course more engaging and practical, ensuring learners follow current standards for building, packaging, and using JavaScript GitHub Actions.