-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (57 loc) · 1.68 KB
/
ci_release.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Release
run-name: Release ${{ inputs.package }}${{ inputs.dry-run && ' (dry-run)' || '' }}
on:
workflow_dispatch:
inputs:
package:
description: Package
required: true
type: choice
options:
- core
- list-loader
- message-box
- numeric-stepper
- overlay
- snackbar
- splitter
- status
- time-picker
- tooltip
dry-run:
description: --dry-run
type: boolean
default: false
env:
HUSKY: 0
FORCE_COLOR: 3
jobs:
ci_release:
uses: dsi-hug/action/.github/workflows/action.yml@v1
secrets:
GH_USER_NAME: 'dsi-hug-bot'
GH_USER_EMAIL: '[email protected]'
GH_TOKEN: ${{ secrets.DSI_HUG_BOT_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.DSI_HUG_NPM_TOKEN }}
with:
working-directory: 'projects/${{ inputs.package }}'
dry-run: ${{ inputs.dry-run }}
release: true
ci_sync_peer_deps:
needs: ci_release
runs-on: 'ubuntu-latest'
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Synchronize peer dependencies
working-directory: 'scripts'
env:
GITHUB_TOKEN: ${{ secrets.DSI_HUG_BOT_GITHUB_TOKEN }}
run: |
git config user.name 'dsi-hug-bot'
git config user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.DSI_HUG_BOT_GITHUB_TOKEN }}@github.com/${{ github.repository }}
npm --prefix . i chalk
node ./sync-peer-deps.mjs