Skip to content

Commit

Permalink
build: use package.json to manage semrel and its deps
Browse files Browse the repository at this point in the history
Signed-off-by: Phil Adams <phil_adams@us.ibm.com>
  • Loading branch information
padamstx committed Jan 9, 2023
1 parent d9e481d commit 6c12963
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ coverage.txt
/.vscode/

# files produced by "npm install" commands during build
package.json
package-lock.json
node_modules/
node_modules/
8 changes: 2 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,12 @@ script:

before_deploy:
- nvm install 14
- npm install -g npm@6.x
- npm install @semantic-release/changelog
- npm install @semantic-release/exec
- npm install @semantic-release/git
- npm install @semantic-release/github
- npm install
- pip install --user bump2version

deploy:
- provider: script
script: npx semantic-release@19
script: npm run semantic-release
skip_cleanup: true
on:
go: '1.16.x'
Expand Down
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "semantic-release-dependencies",
"version": "0.0.0",
"description": "This package.json is being used to manage semantic-release and its dependencies",
"license": "Apache-2.0",
"devDependencies": {
"semantic-release": "19.0.5",
"@semantic-release/changelog": "6.0.2",
"@semantic-release/exec": "6.0.3",
"@semantic-release/git": "10.0.1"
},
"scripts": {
"semantic-release": "semantic-release"
}
}

0 comments on commit 6c12963

Please sign in to comment.