AI SummaryCopilot instructions for publishing JavaScript/TypeScript GitHub Actions with best practices for code quality, testing, and bundling. Developers building and maintaining Node.js-based GitHub Actions will benefit from these standardized guidelines.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "publish-github-action — Copilot Instructions" prompt rules to my project. Repository: https://github.com/joshjohanning/publish-github-action Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
📢 Publish your JavaScript/TypeScript-based GitHub Actions
Project Overview
This is a Node.js GitHub Action template with ESLint, Prettier, Jest testing, and ncc bundling. Follow these guidelines when making changes.
GitHub API Usage
• Use @octokit/rest for REST API calls • Use @actions/github for context and helpers • Handle rate limiting and authentication errors • Cache API responses when appropriate • Use pagination when necessary
ESLint Configuration
• Follow the existing ESLint configuration in eslint.config.js • Use ES modules (import/export) consistently • Prefer const over let when variables don't change • Use descriptive variable names and JSDoc comments for functions • Handle errors gracefully with try/catch blocks
Prettier Formatting
• Code is automatically formatted with Prettier • Run npm run format:write to format all files • Use single quotes for strings unless they contain single quotes • Line length limit is enforced by Prettier config
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts