diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f7d39f9..8087fa2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,9 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Build + uses: yarn build + - name: Semantic Release uses: cycjimmy/semantic-release-action@v4 env: diff --git a/package.json b/package.json index 90f402d..180ee2a 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "wts-client", "version": "2.0.0", - "description": "", + "description": "Webiny Telemetry Service (WTS) client library.", "scripts": { + "build": "rm -rf dist && cp -rf src dist && cp package.json dist/package.json", "test:web": "node __tests__/web.test.js", "test:node": "node __tests__/node.test.js", "test:admin": "node __tests__/admin.test.js" @@ -24,5 +25,6 @@ }, "devDependencies": { "prettier": "^2.3.0" - } + }, + "packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447" } diff --git a/release.config.mjs b/release.config.mjs index 0e36cb4..18ed7e0 100644 --- a/release.config.mjs +++ b/release.config.mjs @@ -2,5 +2,11 @@ * @type {import('semantic-release').GlobalConfig} */ export default { - branches: ["v2"] + branches: ["v2"], + plugins: [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + ["@semantic-release/npm", {"pkgRoot": "./dist"}], + "@semantic-release/github" + ] }; \ No newline at end of file