From 09a723a272628921dc0a4098bbf302278efc4eb6 Mon Sep 17 00:00:00 2001 From: Fabian Date: Sat, 12 Oct 2024 09:54:09 +0200 Subject: [PATCH] npm publish workflow updated, closes #37 --- .github/workflows/npm-publish.yml | 33 +++++-------------------------- package.json | 2 +- 2 files changed, 6 insertions(+), 29 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index cad0c93..8849453 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -6,31 +6,8 @@ on: - master jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 16 - registry-url: https://registry.npmjs.org/ - - run: yarn - - run: yarn build - - run: yarn publish --access=public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - notify: - needs: publish - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Get package info - id: package - uses: codex-team/action-nodejs-package-info@v1 - - name: Send a message - uses: codex-team/action-codexbot-notify@v1 - with: - webhook: ${{ secrets.CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT }} - message: '📦 [${{ steps.package.outputs.name }}](${{ steps.package.outputs.npmjs-link }}) ${{ steps.package.outputs.version }} was published' - parse_mode: 'markdown' - disable_web_page_preview: true + publish-and-notify: + uses: codex-team/github-workflows/.github/workflows/npm-publish-and-notify-reusable.yml@main + secrets: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT: ${{ secrets.CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT }} diff --git a/package.json b/package.json index b538279..64d5375 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/underline", - "version": "1.2.0", + "version": "1.2.1", "keywords": [ "underline", "tool",