@@ -28,31 +28,16 @@ jobs:
2828 - name : Checkout
2929 uses : actions/checkout@v4
3030 with :
31- # we need to checkout the fork repository
32- # see https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#workflow-should-run-in-base-repository
3331 fetch-depth : 1
3432 repository : " ${{ steps.get-branch.outputs.repository }}"
3533 ref : " ${{ steps.get-branch.outputs.branch }}"
36- # We can't use GITHUB_TOKEN here because, github actions can't trigger actions
37- # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
38- # So this is a personal access token
3934 token : ${{ secrets.RELEASE_PLEASE_TOKEN }}
40- - name : Lint files
41- # 2. Set up Node.js environment
4235 - name : Set up Node.js
4336 uses : actions/setup-node@v4
4437 with :
4538 node-version : ' 20' # Specify your project's Node.js version
4639 cache : ' npm' # Or 'yarn' or 'pnpm' based on your package manager
47-
48- # 3. Install project dependencies
49- # Using 'ci' is generally recommended for CI environments for speed and reliability
50- - name : Install dependencies
5140 run : npm ci # Or 'yarn install --frozen-lockfile' or 'pnpm install --frozen-lockfile'
52-
53- # 4. Run Prettier with --write flag
54- # Adjust the file pattern if needed. '.' formats all supported files found.
55- # You might use specific patterns like: "src/**/*.{js,ts,json,md}"
5641 - name : Run Prettier
5742 run : npx prettier --write .
5843 - name : Push changes if needed
0 commit comments