Skip to content

Commit cc89ff3

Browse files
committed
fix
1 parent 590cffa commit cc89ff3

File tree

1 file changed

+25
-13
lines changed

1 file changed

+25
-13
lines changed

.github/workflows/npm-publish.yml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,50 @@ jobs:
1111
publish-ui:
1212
name: Publish @codexteam/ui package
1313
runs-on: ubuntu-latest
14+
1415
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-node@v3
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Setup Node.js from .nvmrc
20+
uses: actions/setup-node@v3
1721
with:
18-
node-version: 20
19-
registry-url: https://registry.npmjs.org/
22+
node-version-file: '.nvmrc'
23+
2024
- name: Install dependencies
25+
working-directory: '@codexteam/ui'
2126
run: yarn install
22-
working-directory: ./@codexteam/ui
27+
2328
- name: Build package
29+
working-directory: '@codexteam/ui'
2430
run: yarn build
25-
working-directory: ./@codexteam/ui
26-
- name: Publish package
31+
32+
- name: Publish package to npm
33+
working-directory: '@codexteam/ui'
2734
run: yarn publish --access=public
28-
working-directory: ./@codexteam/ui
2935
env:
3036
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3137

3238
notify:
39+
name: Notify in CodexBot
3340
needs: publish-ui
3441
runs-on: ubuntu-latest
42+
3543
steps:
36-
- uses: actions/checkout@v3
44+
- name: Checkout repository
45+
uses: actions/checkout@v3
46+
3747
- name: Get UI package info
3848
id: ui-package
3949
uses: codex-team/action-nodejs-package-info@v1
4050
with:
41-
package_json_path: ./@codexteam/ui/package.json
51+
package_json_path: '@codexteam/ui/package.json'
52+
4253
- name: Send a message
4354
uses: codex-team/action-codexbot-notify@v1
4455
with:
4556
webhook: ${{ secrets.CODEX_BOT_WEBHOOK_HAWK }}
46-
message: '📦 [${{ steps.ui-package.outputs.name }}](${{ steps.ui-package.outputs.npmjs-link }}) ${{ steps.ui-package.outputs.version }} was published'
47-
parse_mode: 'markdown'
48-
disable_web_page_preview: true
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

0 commit comments

Comments
 (0)