Skip to content

Commit

Permalink
Merge pull request #14 from kashw2/ci-updates
Browse files Browse the repository at this point in the history
CICD Updates
  • Loading branch information
alepiumetti authored Aug 26, 2024
2 parents b608094 + 6dcfaa6 commit 603ecda
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
node-version: 20
registry-url: https://registry.npmjs.org/
cache: 'npm'
cache-dependency-path: package-lock.json
- run: npm ci --force
- run: npm run build
publish-npm:
if: ${{ github.event_name == 'release' }}
Expand All @@ -27,9 +30,11 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm install
cache: 'npm'
cache-dependency-path: package-lock.json
- run: npm ci --force
- run: npm run build
- run: npm publish
env:
Expand All @@ -45,10 +50,12 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
registry-url: https://npm.pkg.github.com/
cache: 'npm'
cache-dependency-path: package-lock.json
scope: "@alepiumetti"
- run: npm install
- run: npm ci --force
- name: Update package.json name
run: sed -i '2,2 s/table-pagination-chakra-ui/@alepiumetti\/table-pagination-chakra-ui/g' package.json
- run: npm run build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Actualización de version y deploy a producción

on:
push:
paths-ignore:
- .github/**
branches: [main]
jobs:
deploy:
Expand Down

0 comments on commit 603ecda

Please sign in to comment.