-
-
Notifications
You must be signed in to change notification settings - Fork 127
chore: update GitHub Actions to latest versions, add commit linting, and configure native GitHub changelog generation #413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| changelog: | ||
| exclude: | ||
| labels: | ||
| - skip-changelog | ||
| authors: | ||
| - dependabot[bot] | ||
| categories: | ||
| - title: "Features" | ||
| labels: | ||
| - feat | ||
| - enhancement | ||
| - title: "Bug Fixes" | ||
| labels: | ||
| - fix | ||
| - bug | ||
| - title: "Internal Changes" | ||
| labels: | ||
| - "*" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: "Conventional Commits" | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - edited | ||
| - reopened | ||
| - synchronize | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Check commits | ||
| uses: webiny/action-conventional-commits@v1.3.1 | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -36,9 +36,9 @@ jobs: | |||||
| run: | ||||||
| working-directory: extension | ||||||
| steps: | ||||||
| - uses: actions/checkout@v4 | ||||||
| - uses: actions/checkout@v6 | ||||||
| - name: Set up Node.js | ||||||
| uses: actions/setup-node@v4 | ||||||
| uses: actions/setup-node@v5 | ||||||
| with: | ||||||
| node-version: "22" | ||||||
| cache: "npm" | ||||||
|
|
@@ -54,7 +54,7 @@ jobs: | |||||
| run: | | ||||||
| npm run zip -- -b ${{ matrix.browser }} | ||||||
| - name: Upload Artifact | ||||||
| uses: actions/upload-artifact@v4 | ||||||
| uses: actions/upload-artifact@v7 | ||||||
| with: | ||||||
| name: extension-${{ matrix.browser }} | ||||||
| path: extension/output/*.zip | ||||||
|
|
@@ -76,15 +76,15 @@ jobs: | |||||
| if: startsWith(github.ref, 'refs/tags/ext-v') | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - uses: actions/checkout@v4 | ||||||
| - uses: actions/checkout@v6 | ||||||
| - name: Download all artifacts | ||||||
| uses: actions/download-artifact@v4 | ||||||
| uses: actions/download-artifact@v8 | ||||||
|
Comment on lines
57
to
+81
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The Both actions should be pinned to the same major version. Either downgrade the download to
Suggested change
Prompt To Fix With AIThis is a comment left during a code review.
Path: .github/workflows/extension.yml
Line: 57-81
Comment:
**upload-artifact/download-artifact major-version mismatch**
The `build` job uploads with `actions/upload-artifact@v7` while the `release` job downloads with `actions/download-artifact@v8`. These two actions use a shared internal artifact format, and different major versions are not guaranteed to be cross-compatible — a v7-produced artifact may not be correctly read by the v8 client, causing the release job to fail silently or error out on `ext-v*` tag pushes.
Both actions should be pinned to the same major version. Either downgrade the download to `@v7` or upgrade the upload to `@v8`.
```suggestion
uses: actions/upload-artifact@v8
```
How can I resolve this? If you propose a fix, please make it concise. |
||||||
| with: | ||||||
| path: artifacts | ||||||
| pattern: extension-* | ||||||
| merge-multiple: true | ||||||
| - name: Create Release | ||||||
| uses: softprops/action-gh-release@v2 | ||||||
| uses: softprops/action-gh-release@v3 | ||||||
| with: | ||||||
| files: artifacts/*.zip | ||||||
| generate_release_notes: true | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.