File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed
Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish CodeX UI to NPM
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' @codexteam/ui/**'
9+
10+ jobs :
11+ publish-ui :
12+ name : Publish @codexteam/ui package
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v3
18+
19+ - name : Setup Node.js from .nvmrc
20+ uses : actions/setup-node@v3
21+ with :
22+ node-version-file : ' .nvmrc'
23+
24+ - name : Install dependencies
25+ working-directory : ' @codexteam/ui'
26+ run : yarn install
27+
28+ - name : Build package
29+ working-directory : ' @codexteam/ui'
30+ run : yarn build
31+
32+ - name : Publish package to npm
33+ working-directory : ' @codexteam/ui'
34+ run : yarn publish --access=public
35+ env :
36+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
37+
38+ notify :
39+ name : Notify in CodexBot
40+ needs : publish-ui
41+ runs-on : ubuntu-latest
42+
43+ steps :
44+ - name : Checkout repository
45+ uses : actions/checkout@v3
46+
47+ - name : Get UI package info
48+ id : ui-package
49+ uses : codex-team/action-nodejs-package-info@v1
50+ with :
51+ package_json_path : ' @codexteam/ui/package.json'
52+
53+ - name : Send a message
54+ uses : codex-team/action-codexbot-notify@v1
55+ with :
56+ webhook : ${{ secrets.CODEX_BOT_WEBHOOK_HAWK }}
57+ message : |
58+ [${{ steps.ui-package.outputs.name }}](${{ steps.ui-package.outputs.npmjs-link }}) v${{ steps.ui-package.outputs.version }} was published
59+ parse_mode : markdown
60+ disable_web_page_preview : true
You can’t perform that action at this time.
0 commit comments