ci: upload build artifact on non-main branches for testing

https://claude.ai/code/session_019Jbz6HpQvWU1wpm5M6MZpd
This commit is contained in:
Claude 2026-06-16 04:22:32 +00:00
parent 8024939a89
commit c2c5dd584c
No known key found for this signature in database

View file

@ -21,3 +21,28 @@ jobs:
skip-sonar: true
secrets:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
build-artifact:
name: Upload build artifact
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run build
- uses: actions/upload-artifact@v4
with:
name: plugin-${{ github.ref_name }}-${{ github.sha }}
path: |
main.js
manifest.json
styles.css
retention-days: 7