GitHub Actions के साथ CI/CD सेट अप करें
डेवलपर्स को डॉक्यूमेंटेशन के लिए इमेज संकेतों के साथ संरचित, कॉपी-पेस्ट-तैयार ट्यूटोरियल जनरेट करने का फ़ायदा मिलता है।
इनपुट और आउटपुट का पूर्वावलोकन देखें
इनपुट
- कार्य / क्या पूरा करना है
- Set up a CI/CD pipeline with GitHub Actions for a Node.js app
- कठिनाई स्तर
- मध्यम — बुनियादी ज्ञान मान लिया गया है
- छवि स्थान नोट्स शामिल करें?
- हाँ — विवरण के साथ [छवि] मार्कर जोड़ें
- आवश्यक टूल / सॉफ़्टवेयर
- GitHub account, Node.js 18+, a repository with npm scripts
आउटपुट (अंश)
How to Set Up a CI/CD Pipeline with GitHub Actions
Prerequisites: GitHub account, Node.js 18+, a repo with `npm test` and `npm run build`.
Step 1 — Create the workflow file. In your repo, add `.github/workflows/ci.yml`. [Image: screenshot of the file tree showing the new workflow folder]
Step 2 — Define the trigger. Set the workflow to run on every push and pull request to main:
```yaml
on:
push:
branches: [main]
```
Step 3 — Add the test job...