firstsun-dev_git-files-sync/.github/workflows/ci.yml
Claude 21a6f984ee
ci: update GitHub Actions to latest versions
- actions/setup-node: node 20 → 22 (Node 20 EOL Apr 2026)
- github/codeql-action: v3 → v4 (v3 deprecated Dec 2026)

https://claude.ai/code/session_019Jbz6HpQvWU1wpm5M6MZpd
2026-06-16 04:23:56 +00:00

48 lines
1 KiB
YAML

name: CI/CD
permissions:
contents: write
issues: write
pull-requests: write
attestations: write
id-token: write
on:
push:
branches: [main, master, '**']
pull_request:
types: [opened, synchronize, reopened]
jobs:
CI:
uses: firstsun-dev/.github/.github/workflows/obsidian-plugin-ci.yml@v1
with:
plugin-id: "git-file-sync"
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: '22'
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