Skip to content

Commit

Permalink
chore: update CI (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuapp authored Jun 27, 2024
1 parent 35ee921 commit efa389e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn format
- run: yarn lint
- run: yarn test
- run: yarn build
9 changes: 3 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ async function main() {
}`,
)
}

const packageJsonPath = path.join(targetDirectoryPath, 'package.json')

if (fs.existsSync(packageJsonPath)) {
const packageJson = fs.readFileSync(packageJsonPath, 'utf-8')

Expand All @@ -158,10 +158,7 @@ async function main() {
...packageJsonParsed,
}

fs.writeFileSync(
packageJsonPath,
JSON.stringify(newPackageJson, null, 2),
)
fs.writeFileSync(packageJsonPath, JSON.stringify(newPackageJson, null, 2))
}

console.log(chalk.green('🎉 ' + chalk.bold('Copied project files')))
Expand Down

0 comments on commit efa389e

Please sign in to comment.