Skip to content

Commit

Permalink
Added workflow_dispatch event for manual action run
Browse files Browse the repository at this point in the history
  • Loading branch information
siibragimov authored and Said Ibragimov committed Jul 7, 2024
1 parent d77ed96 commit 97b3bf5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
name: Node.js Github Package

on:
workflow_dispatch:
release:
types: [published]

Expand All @@ -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/
1 change: 1 addition & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
name: Node.js Package

on:
workflow_dispatch:
release:
types: [published]

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 97b3bf5

Please sign in to comment.