diff --git a/.github/workflows/distribute-features.yml b/.github/workflows/distribute-features.yml index 3e104a6..8acf7c2 100644 --- a/.github/workflows/distribute-features.yml +++ b/.github/workflows/distribute-features.yml @@ -25,7 +25,7 @@ jobs: node-version: '18' - name: Install dependencies - run: npm install @octokit/rest + run: npm install @octokit/rest@20.1.2 - name: Distribute feature files env: diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..08ed547 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +package-lock.json +.npm/ +*.log \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..ca6c166 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@octokit/rest": "^20.1.2" + } +} diff --git a/scripts/README.md b/scripts/README.md index 3a9a63c..b4ef55d 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -26,9 +26,11 @@ For manual control or troubleshooting, use the `distribute-features-manual.js` s ### Prerequisites: ```bash -npm install @octokit/rest +npm install @octokit/rest@20.1.2 ``` +**Note:** Version 20.1.2 is required for CommonJS compatibility. Newer versions (22.0.0+) are ES modules only. + ### Set up GitHub token: ```bash export GITHUB_TOKEN=your_github_token_here