diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 693067a..6b22d5e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,10 @@ name: Release on: - pull_request: - branches: - - master push: branches: - master + - main - next - next-major - alpha @@ -24,6 +22,22 @@ jobs: uses: ./ id: semantic with: + branches: | + [ + '+([0-9])?(.{+([0-9]),x}).x', + 'master', + 'main', + 'next', + 'next-major', + { + name: 'beta', + prerelease: true + }, + { + name: 'alpha', + prerelease: true + } + ] extra_plugins: | @semantic-release/git @semantic-release/changelog diff --git a/.github/workflows/testRelease.yml b/.github/workflows/testRelease.yml index ae1bb34..b09c173 100644 --- a/.github/workflows/testRelease.yml +++ b/.github/workflows/testRelease.yml @@ -1,17 +1,11 @@ name: Test Release on: - push: + pull_request: branches: - master - - next - - next-major - - alpha - - beta - - 'feat/**' - - 'fix/**' - - 'perf/**' - - 'refactor/**' + - main + push: schedule: - cron: 0 2 * * 0 @@ -33,6 +27,7 @@ jobs: [ '+([0-9])?(.{+([0-9]),x}).x', 'master', + 'main', 'next', 'next-major', { @@ -44,7 +39,6 @@ jobs: prerelease: true } ] - branch: master extra_plugins: | @semantic-release/git @semantic-release/changelog diff --git a/package-lock.json b/package-lock.json index d3808da..8d20e1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@actions/core": "^1.6.0", - "@cycjimmy/awesome-js-funcs": "^3.1.0", + "@cycjimmy/awesome-js-funcs": "^4.0.4", "@semantic-release/changelog": "^6.0.1", "@semantic-release/git": "^10.0.1", "semantic-release": "^19.0.2" @@ -121,9 +121,9 @@ } }, "node_modules/@cycjimmy/awesome-js-funcs": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@cycjimmy/awesome-js-funcs/-/awesome-js-funcs-3.1.0.tgz", - "integrity": "sha512-FT+V5fSZoPAdEAo34FJFy5+DfhdoQ+s6cOmghjAUQzluM7NlUkPKUSFy5fzJHVJD2dofy8v2k3IIfgUXNiG2yw==" + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@cycjimmy/awesome-js-funcs/-/awesome-js-funcs-4.0.4.tgz", + "integrity": "sha512-SAkk1VmTubFDhrfMiBS8tNRV8ObGrXKnW7Wi27+KOM+1zPxomNxmF0wVBsxRTwI0tkeeELnxvfpFhHhk144sVg==" }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", @@ -5572,9 +5572,9 @@ } }, "@cycjimmy/awesome-js-funcs": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@cycjimmy/awesome-js-funcs/-/awesome-js-funcs-3.1.0.tgz", - "integrity": "sha512-FT+V5fSZoPAdEAo34FJFy5+DfhdoQ+s6cOmghjAUQzluM7NlUkPKUSFy5fzJHVJD2dofy8v2k3IIfgUXNiG2yw==" + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@cycjimmy/awesome-js-funcs/-/awesome-js-funcs-4.0.4.tgz", + "integrity": "sha512-SAkk1VmTubFDhrfMiBS8tNRV8ObGrXKnW7Wi27+KOM+1zPxomNxmF0wVBsxRTwI0tkeeELnxvfpFhHhk144sVg==" }, "@nodelib/fs.scandir": { "version": "2.1.5", diff --git a/package.json b/package.json index 38f932c..c7dbfda 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "homepage": "https://github.com/cycjimmy/semantic-release-action#readme", "dependencies": { "@actions/core": "^1.6.0", - "@cycjimmy/awesome-js-funcs": "^3.1.0", + "@cycjimmy/awesome-js-funcs": "^4.0.4", "@semantic-release/changelog": "^6.0.1", "@semantic-release/git": "^10.0.1", "semantic-release": "^19.0.2" diff --git a/src/handleOptions.js b/src/handleOptions.js index 60e0f53..ebf8568 100644 --- a/src/handleOptions.js +++ b/src/handleOptions.js @@ -1,5 +1,5 @@ const core = require('@actions/core'); -const stringToJson = require('@cycjimmy/awesome-js-funcs/cjs/typeConversion/stringToJson').default; +const stringToJson = require('@cycjimmy/awesome-js-funcs/cjs/typeConversion/stringToJson.cjs').default; const inputs = require('./inputs.json'); /**