This repository was archived by the owner on Mar 8, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +48
-2
lines changed
Expand file tree Collapse file tree 3 files changed +48
-2
lines changed Original file line number Diff line number Diff line change 1+ name : dependabot-yarn-mirror
2+
3+ on :
4+ push :
5+ branches : [ dependabot/**/* ]
6+ pull_request :
7+ branches : [ dependabot/**/* ]
8+
9+ concurrency :
10+ group : dependabot-yarn-mirror-${{ github.ref }}
11+ cancel-in-progress : true
12+
13+ jobs :
14+ yarn-mirror :
15+ if : github.repository == 'carbon-design-system/carbon-web-components'
16+ runs-on : ubuntu-latest
17+ strategy :
18+ matrix :
19+ node-version : ['14.x']
20+ steps :
21+ - uses : actions/checkout@v2
22+ with :
23+ token : ${{ secrets.GH_TOKEN }}
24+ - name : Use Node.js
25+ uses : actions/setup-node@v2
26+ with :
27+ node-version : ${{ matrix.node-version }}
28+ cache : ' yarn'
29+ - name : Get branch name
30+ shell : bash
31+ run : echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
32+ id : get_branch
33+ - name : Install dependencies
34+ run : yarn install
35+ - name : Push changes
36+ run : |
37+ if [ -z "$(git status --porcelain)" ]; then
38+ echo "Mirror is clean, exiting..."
39+ else
40+ git config --global user.email ${{ secrets.BOT_EMAIL }}
41+ git config --global user.name ${{ secrets.BOT_NAME }}
42+
43+ git add -A
44+ git commit -m "chore(yarn): update yarn offline mirror"
45+ git push origin ${{ steps.get_branch.outputs.branch }}
46+ fi
Original file line number Diff line number Diff line change 1414 - uses : actions/checkout@v2
1515 with :
1616 fetch-depth : 0
17+ token : ${{ secrets.GITHUB_TOKEN }}
1718 - name : Use Node.js 16.x
1819 uses : actions/setup-node@v2
1920 with :
4647 with :
4748 bodyFile : " CHANGELOG.md"
4849 tag : v${{ steps.publish.outputs.version }}
49- commit : main
5050 token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11{
22 "name" : " carbon-web-components" ,
3- "version" : " 1.20 .0" ,
3+ "version" : " 1.21 .0" ,
44 "license" : " Apache-2.0" ,
55 "repository" : " https://github.com/carbon-design-system/carbon-web-components" ,
66 "bugs" : " https://github.com/carbon-design-system/carbon-web-components/issues" ,
You can’t perform that action at this time.
0 commit comments