Skip to content

Commit

Permalink
feat(package.json): Add semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorDRF02 committed Oct 1, 2024
1 parent d955ba8 commit 3e2f1c1
Show file tree
Hide file tree
Showing 3 changed files with 2,387 additions and 66 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package
name: Update npm package

on:
push:
Expand All @@ -16,8 +16,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test
- run: yarn install --frozen-lockfile
- run: yarn test
- run: yarn run build

publish-npm:
needs: build
Expand All @@ -27,8 +28,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
- run: yarn install --frozen-lockfile
- run: yarn run semantic-release
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NPM_TOKEN: ${{secrets.GITHUB_TOKEN}}
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "angular-workspace",
"version": "0.0.0",
"version": "0.0.0-development",
"scripts": {
"ng": "node ./node_modules/@angular/cli/bin/ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test"
"test": "ng test",
"semantic-release": "semantic-release --branches main"
},
"private": true,
"dependencies": {
Expand Down Expand Up @@ -37,6 +38,11 @@
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"ng-packagr": "^16.2.0",
"semantic-release": "^24.1.2",
"typescript": "~5.1.3"
},
"repository": {
"type": "git",
"url": "https://github.com/VictorDRF02/ngx-dynamic-table.git"
}
}
Loading

0 comments on commit 3e2f1c1

Please sign in to comment.