Skip to content

Commit

Permalink
Bump packages and fix release action (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunofgs committed Apr 24, 2024
1 parent c00a683 commit a37240a
Show file tree
Hide file tree
Showing 8 changed files with 579 additions and 18 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,10 @@ jobs:

needs: [npm, github]

strategy:
matrix:
package:
- browser
- core
- node

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set Git Identity
run: |
Expand All @@ -106,9 +101,23 @@ jobs:
run: |
yarn install --frozen-lockfile
- name: Commit version bump
- name: Bump core
run: |
cd packages/core
yarn version ${{ github.event.inputs.version }}
- name: Bump browser
run: |
cd packages/browser
yarn version ${{ github.event.inputs.version }}
yarn run build-prep
- name: Bump node
run: |
cd packages/node
yarn version ${{ github.event.inputs.version }}
- name: Push changes
run: |
cd packages/${{ matrix.package }}
npm version ${{ github.event.inputs.version }}
git commit -am "Update version"
git push
550 changes: 550 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ plugins:
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"

preferInteractive: true

Expand Down
4 changes: 2 additions & 2 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@customerio/cdp-analytics-browser",
"version": "0.0.3",
"version": "0.1.0",
"repository": {
"type": "git",
"url": "https://github.com/customerio/cdp-analytics-js",
Expand Down Expand Up @@ -47,7 +47,7 @@
}
],
"dependencies": {
"@customerio/cdp-analytics-core": "0.0.4",
"@customerio/cdp-analytics-core": "0.1.0",
"@lukeed/uuid": "^2.0.0",
"@segment/analytics.js-video-plugins": "^0.2.1",
"@segment/facade": "^3.4.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/src/generated/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// This file is generated.
export const version = '0.0.3'
export const version = '0.1.0'
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@customerio/cdp-analytics-core",
"version": "0.0.4",
"version": "0.1.0",
"license": "MIT",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@customerio/cdp-analytics-node",
"version": "0.0.4",
"version": "0.1.0",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
Expand Down Expand Up @@ -28,7 +28,7 @@
"prepublish": "yarn run -T build"
},
"dependencies": {
"@customerio/cdp-analytics-core": "0.0.4",
"@customerio/cdp-analytics-core": "0.1.0",
"buffer": "^6.0.3",
"node-fetch": "^2.6.7",
"tslib": "^2.4.1",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@customerio/cdp-analytics-browser@workspace:packages/browser"
dependencies:
"@customerio/cdp-analytics-core": 0.0.4
"@customerio/cdp-analytics-core": 0.1.0
"@internal/config": 0.0.0
"@lukeed/uuid": ^2.0.0
"@segment/analytics.js-integration": ^3.3.3
Expand Down Expand Up @@ -822,7 +822,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@customerio/cdp-analytics-node@workspace:packages/node"
dependencies:
"@customerio/cdp-analytics-core": 0.0.4
"@customerio/cdp-analytics-core": 0.1.0
"@internal/config": 0.0.0
"@types/node": ^14
"@types/uuid": ^9
Expand Down

0 comments on commit a37240a

Please sign in to comment.