-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1007 Bytes
/
bump-components.yml
File metadata and controls
34 lines (29 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Bump components version
on:
repository_dispatch:
types: [components-published]
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.PUSH_TOKEN }}
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Bump @cumulus-ui/components
run: |
VERSION="${{ github.event.client_payload.version }}"
VERSION="${VERSION#v}"
npm install @cumulus-ui/components@$VERSION --save-exact
- name: Commit and push
run: |
VERSION="${{ github.event.client_payload.version }}"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add package.json package-lock.json
git diff --cached --quiet && echo "No changes" && exit 0
git commit -m "chore: bump @cumulus-ui/components to ${VERSION}"
git push