Skip to content

Commit b415474

Browse files
committed
[ADD] cambios en workflow para publicación automática
1 parent 3c34ad2 commit b415474

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.github/workflows/npm-publish-github-packages.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,22 @@ jobs:
1515
- uses: actions/setup-node@v3
1616
with:
1717
node-version: 16
18-
- run: npm ci
19-
18+
- run: npm install
19+
- run: npm run build
20+
publish-npm:
21+
needs: build
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v3
25+
- uses: actions/setup-node@v3
26+
with:
27+
node-version: 16
28+
registry-url: https://registry.npmjs.org/
29+
- run: npm install
30+
- run: npm run build
31+
- run: npm publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{secrets.PUBLISH_NPM_TOKEN}}
2034
publish-gpr:
2135
needs: build
2236
runs-on: ubuntu-latest
@@ -29,7 +43,9 @@ jobs:
2943
with:
3044
node-version: 16
3145
registry-url: https://npm.pkg.github.com/
32-
- run: npm ci
46+
scope: "@alepiumetti"
47+
- run: npm install
48+
- run: npm run build
3349
- run: npm publish
3450
env:
35-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
51+
NODE_AUTH_TOKEN: ${{secrets.GH_TOKEN}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "table-pagination-chakra-ui",
2+
"name": "@alepiumetti/table-pagination-chakra-ui",
33
"repository": {
44
"type": "git",
55
"url": "https://github.com/alepiumetti/chakra-ui-table-w-pagination-sort-search.git"

0 commit comments

Comments
 (0)