Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yuexiaoliang committed Aug 6, 2024
1 parent 6866c37 commit 4fd29ec
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 24 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/charts-meta.yml
Original file line number Diff line number Diff line change
@@ -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 }}
24 changes: 0 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 4fd29ec

Please sign in to comment.