Skip to content

Commit 6151b37

Browse files
authored
Merge pull request #17 from editor-js/remove-bundle
Remove bundle
2 parents 051b8e9 + 95699fa commit 6151b37

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

.github/workflows/npm-publish.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/setup-node@v1
1414
with:
1515
node-version: 12
16-
registry-url: https://registry.npmjs.org/
16+
registry-url: https://registry.npmjs.org/
1717
- run: yarn
1818
- run: yarn build
1919
- run: yarn publish --access=public
@@ -24,8 +24,13 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v2
27-
- run: echo ::set-env name=EMOJI_PACKAGE::$'\xf0\x9f\x93\xa6'
28-
- run: echo ::set-env name=PACKAGE_NAME::$(node -p "require('./package.json').name")
29-
- run: echo ::set-env name=PACKAGE_VERSION::$(node -p "require('./package.json').version")
30-
- run: echo ::set-env name=MESSAGE::"$EMOJI_PACKAGE [$PACKAGE_NAME](https://npmjs.com/package/$PACKAGE_NAME) $PACKAGE_VERSION was published"
31-
- run: curl -X POST ${{ secrets.CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT }} -d "message=$MESSAGE" -d parse_mode=Markdown -d disable_web_page_preview=true
27+
- name: Get package info
28+
id: package
29+
uses: codex-team/action-nodejs-package-info@v1
30+
- name: Send a message
31+
uses: codex-team/action-codexbot-notify@v1
32+
with:
33+
webhook: ${{ secrets.CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT }}
34+
message: '📦 [${{ steps.package.outputs.name }}](${{ steps.package.outputs.npmjs-link }}) ${{ steps.package.outputs.version }} was published'
35+
parse_mode: 'markdown'
36+
disable_web_page_preview: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules/*
22
npm-debug.log
33
.idea/
44
.DS_Store
5+
dist

dist/bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)