diff --git a/.github/workflows/charts-meta.yml b/.github/workflows/charts-meta.yml new file mode 100644 index 0000000..148c731 --- /dev/null +++ b/.github/workflows/charts-meta.yml @@ -0,0 +1,41 @@ + +name: chart-meta + +permissions: + contents: write + +on: + push: + tags: + - 'v*' + workflow_dispatch: + +jobs: + charts-meta: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set node + uses: actions/setup-node@v4 + with: + node-version: lts/* + + - name: Install pnpm + uses: pnpm/action-setup@v3 + + - name: Install dependencies + run: pnpm install -r + + - name: Update charts-meta + run: | + pnpm charts-meta + git add packages/charts/meta.json + + - name: Commit & Push changes + uses: actions-js/push@master + with: + message: 'feat(charts): update meta.json' + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95182b3..2bab275 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,27 +43,3 @@ jobs: - run: npx changelogithub env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - charts-meta: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install pnpm - uses: pnpm/action-setup@v3 - - - name: Set node - uses: actions/setup-node@v4 - with: - node-version: lts/* - - - name: Update charts-meta - run: | - pnpm charts-meta - git add packages/charts/meta.json - - - name: Commit & Push changes - uses: actions-js/push@master - with: - message: 'feat(charts): update meta.json' - github_token: ${{ secrets.GITHUB_TOKEN }}