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