Skip to content

ci: fix pipeline

ci: fix pipeline #11

Workflow file for this run

name: Publish
on:
push:
tags:
- v*
jobs:
publish:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci
- run: mkdir plugins && cp -r generated/* plugins/ && cp -r config/* plugins/
- run: zip -rq plugins-${{ github.ref_name }}.zip plugins/
- run: npx -y conventional-changelog-cli -p conventionalcommits > CHANGELOG.md
- id: create_release
run: >
gh release create ${{ github.ref_name }}
--title "${{ github.ref_name }}"
--notes-file CHANGELOG.md
- if: success() && steps.create_release.outcome == 'success'
run: gh release upload ${{ github.ref_name }} plugins-*.zip --clobber