From 97b3bf59833e47dbef5a665e7d07301f50a3f20b Mon Sep 17 00:00:00 2001 From: Said Ibragimov <70318942+siibragimov@users.noreply.github.com> Date: Sat, 6 Jul 2024 15:16:02 +0100 Subject: [PATCH] Added workflow_dispatch event for manual action run --- .../workflows/npm-publish-github-packages.yml | 16 +++++++++++++--- .github/workflows/npm-publish.yml | 1 + README.md | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index 818c015..29204f9 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -4,6 +4,7 @@ name: Node.js Github Package on: + workflow_dispatch: release: types: [published] @@ -26,12 +27,21 @@ jobs: packages: write steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 20 registry-url: https://npm.pkg.github.com/ - run: npm ci - run: npm run build - - run: npm publish --provenance --access public --dry-run + - name: Check .npmrc + run: cat ~/work/_temp/.npmrc + - run: npm publish --registry=https://npm.pkg.github.com/ --provenance --access public --dry-run env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.PACKAGE_TOKEN}} + # - run: npm publish --provenance --access public + # - name: Upload npm logs + # if: failure() + # uses: actions/upload-artifact@v2 + # with: + # name: npm-logs + # path: /home/runner/.npm/_logs/ \ No newline at end of file diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 7c82b18..145354d 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -4,6 +4,7 @@ name: Node.js Package on: + workflow_dispatch: release: types: [published] diff --git a/README.md b/README.md index 84013ca..910e3ea 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Use for build component ```shell npm run build ``` -and follow instruction in console to open the test page. +and follow the instruction in console to open the test page. To generate types you can use: ```shell