Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBelien authored Sep 4, 2024
1 parent 84cc0ae commit f375517
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,25 @@ jobs:
with:
node-version: 20
cache: 'npm'
registry-url: https://registry.npmjs.org/ # NPM registry
- run: npm ci
- run: npm run build-prod

# Publish to npm
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Publish to GitHub Packages
- name: Publish to GitHub Packages
run: npm publish --registry=https://npm.pkg.github.com
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: release
run: cd dist/ngx-emoji-picker && npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit f375517

Please sign in to comment.