-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from TechTeamer/beta
FKITDEV-3818: feat(semver): setup semantic release
- Loading branch information
Showing
49 changed files
with
4,721 additions
and
1,799 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'beta' | ||
|
||
permissions: | ||
contents: write | ||
issues: write # Allow creating issues if needed | ||
packages: write # If you are publishing packages | ||
actions: read | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npx semantic-release@24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cat >dist/cjs/package.json <<!EOF | ||
{ | ||
"type": "commonjs" | ||
} | ||
!EOF | ||
|
||
cat >dist/mjs/package.json <<!EOF | ||
{ | ||
"type": "module" | ||
} | ||
!EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,33 @@ | ||
const QueueClient = require('./src/QueueClient') | ||
const QueueConfig = require('./src/QueueConfig') | ||
const QueueConnection = require('./src/QueueConnection') | ||
const ConnectionPool = require('./src/ConnectionPool') | ||
const QueueMessage = require('./src/QueueMessage') | ||
const ProtoQueueMessage = require('./src/ProtoQueueMessage') | ||
const QueueServer = require('./src/QueueServer') | ||
const QueueManager = require('./src/QueueManager') | ||
const RPCClient = require('./src/RPCClient') | ||
const RPCError = require('./src/RPCError') | ||
const RPCServer = require('./src/RPCServer') | ||
const Publisher = require('./src/Publisher') | ||
const Subscriber = require('./src/Subscriber') | ||
const GatheringClient = require('./src/GatheringClient') | ||
const GatheringServer = require('./src/GatheringServer') | ||
import QueueClient from './src/QueueClient.js' | ||
import QueueConfig from './src/QueueConfig.js' | ||
import QueueConnection from './src/QueueConnection.js' | ||
import ConnectionPool from './src/ConnectionPool.js' | ||
import QueueMessage from './src/QueueMessage.js' | ||
import ProtoQueueMessage from './src/ProtoQueueMessage.js' | ||
import QueueServer from './src/QueueServer.js' | ||
import QueueManager from './src/QueueManager.js' | ||
import RPCClient from './src/RPCClient.js' | ||
import RPCError from './src/RPCError.js' | ||
import RPCServer from './src/RPCServer.js' | ||
import Publisher from './src/Publisher.js' | ||
import Subscriber from './src/Subscriber.js' | ||
import GatheringClient from './src/GatheringClient.js' | ||
import GatheringServer from './src/GatheringServer.js' | ||
|
||
module.exports.QueueClient = QueueClient | ||
module.exports.QueueConfig = QueueConfig | ||
module.exports.QueueConnection = QueueConnection | ||
module.exports.ConnectionPool = ConnectionPool | ||
module.exports.QueueMessage = QueueMessage | ||
module.exports.ProtoQueueMessage = ProtoQueueMessage | ||
module.exports.QueueServer = QueueServer | ||
module.exports.QueueManager = QueueManager | ||
module.exports.RPCClient = RPCClient | ||
module.exports.RPCError = RPCError | ||
module.exports.RPCServer = RPCServer | ||
module.exports.Publisher = Publisher | ||
module.exports.Subscriber = Subscriber | ||
module.exports.GatheringClient = GatheringClient | ||
module.exports.GatheringServer = GatheringServer | ||
export { | ||
QueueClient, | ||
QueueConfig, | ||
QueueConnection, | ||
ConnectionPool, | ||
QueueMessage, | ||
ProtoQueueMessage, | ||
QueueServer, | ||
QueueManager, | ||
RPCClient, | ||
RPCError, | ||
RPCServer, | ||
Publisher, | ||
Subscriber, | ||
GatheringClient, | ||
GatheringServer | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* @type {import('semantic-release').GlobalConfig} | ||
*/ | ||
export default { | ||
branches: ['master', { name: 'beta', prerelease: true }], | ||
// eslint-disable-next-line no-template-curly-in-string | ||
tagFormat: '${version}', | ||
plugins: [ | ||
'@semantic-release/commit-analyzer', | ||
'@semantic-release/release-notes-generator', | ||
[ | ||
'@semantic-release/changelog', | ||
{ | ||
changelogFile: 'CHANGELOG.md' | ||
} | ||
], | ||
'@semantic-release/npm', | ||
[ | ||
'@semantic-release/github', | ||
{ | ||
assets: ['dist/**'] | ||
} | ||
], | ||
'@semantic-release/git' | ||
], | ||
preset: 'angular' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.