feat: automate dist recompilation on Renovate PRs and configure concurrency limit #120
@@ -22,6 +22,7 @@ jobs:
|
|||||||
- name: Checkout PR Branch
|
- name: Checkout PR Branch
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
with:
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
|||||||
@@ -33,3 +33,8 @@ The Gitea workflow does the following:
|
|||||||
2. Sets up Node.js and pnpm.
|
2. Sets up Node.js and pnpm.
|
||||||
3. Installs the dependencies using `pnpm install`.
|
3. Installs the dependencies using `pnpm install`.
|
||||||
4. Runs the tests using `pnpm test`.
|
4. Runs the tests using `pnpm test`.
|
||||||
|
|
||||||
|
### Automated Recompilation & Permissions
|
||||||
|
|
||||||
|
* The automated recompilation workflow (`.gitea/workflows/recompile-dist.yaml`) recompiles `dist/index.js` on Renovate PRs and requires `contents: write` permissions to push back to the branch.
|
||||||
|
* Ensure that the Gitea repository workflow settings have write permissions enabled (**Settings** ➔ **Actions** ➔ **General** ➔ **Workflow permissions** ➔ **Read and write permissions**).
|
||||||
|
|||||||
Reference in New Issue
Block a user