Skip to content

Commit

Permalink
chore: updating dependencies and ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tzuge committed Feb 3, 2025
1 parent fecb85f commit 88e5ee3
Show file tree
Hide file tree
Showing 6 changed files with 2,964 additions and 11,383 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,26 @@ name: Node.js CI
on:
push:
branches:
- master
- main
pull_request:
branches:
- main
- beta

jobs:
test-build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 10.x
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 10.x
- name: Install npm packages using cache
uses: bahmutov/npm-install@v1
- name: Run tests
run: yarn test
node-version: 20
cache: 'yarn'
- run: yarn install --frozen-lockfile
- name: Semantic release
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release
18 changes: 18 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"main",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"plugins": [
"@semantic-release/npm",
"@semantic-release/github"
]
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# maven-semantic-release

Fork of [@conveyal/maven-semantic-release](https://github.com/conveyal/maven-semantic-release) for dependency updates.

Automated release management for maven projects

## About
Expand Down
13 changes: 5 additions & 8 deletions lib/verify-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,18 @@ async function getLatestVersionFromMavenCentral (pomXml, logger) {
// get the last semver version from published repo
logger.log('searching maven for term %s', searchTerm)
const mavenCentralJson = await got(
`https://search.maven.org/solrsearch/select?q=${searchTerm}&rows=20&wt=json`,
{ json: true }
)
`https://search.maven.org/solrsearch/select?q=${searchTerm}&rows=20&wt=json`
).json()

if (
!mavenCentralJson ||
!mavenCentralJson.body ||
!mavenCentralJson.body.response ||
!mavenCentralJson.body.response.docs ||
mavenCentralJson.body.response.docs.length === 0
!mavenCentralJson.docs ||
mavenCentralJson.docs.length === 0
) {
logger.log('No version found of package %s found on %s', searchTerm, 'maven central')
return
}

// (dangerously) assume first doc is the one we're looking for
return mavenCentralJson.body.response.docs[0].latestVersion
return mavenCentralJson.docs[0].latestVersion
}
27 changes: 12 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
{
"name": "@conveyal/maven-semantic-release",
"version": "0.0.0-development",
"name": "@abgov/maven-semantic-release",
"version": "0.0.0",
"description": "Automated release management for maven projects",
"main": "index.js",
"author": "evansiroky <[email protected]>",
"license": "MIT",
"private": false,
"scripts": {
"test": "mastarm lint lib",
"semantic-release": "semantic-release"
},
"repository": {
"type": "git",
"url": "https://github.com/conveyal/maven-semantic-release.git"
"url": "https://github.com/GovAlta/maven-semantic-release.git"
},
"dependencies": {
"@semantic-release/error": "^2.2.0",
"aggregate-error": "^1.0.0",
"execa": "^0.10.0",
"fs-extra": "^5.0.0",
"got": "^8.0.1",
"semver": "^5.5.0",
"xml2js-es6-promise": "^1.1.1"
"@semantic-release/error": "^4.0.0",
"aggregate-error": "^5.0.0",
"execa": "^9.5.0",
"fs-extra": "^11.3.0",
"got": "^11.8.5",
"semver": "^7.7.0",
"xml2js": "^0.6.2"
},
"devDependencies": {
"mastarm": "^5.1.3",
"semantic-release": "^17.3.0"
"semantic-release": "^23.0.0"
},
"peerDependencies": {
"semantic-release": "^17.3.0"
"semantic-release": "^23.0.0"
}
}
Loading

0 comments on commit 88e5ee3

Please sign in to comment.