Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #81 from theodo/fix-release-script-3
Browse files Browse the repository at this point in the history
fix: fix release script 3
  • Loading branch information
ThomasAribart committed Jul 29, 2022
2 parents 78e1e9d + 128b717 commit 46a75ef
Show file tree
Hide file tree
Showing 17 changed files with 381 additions and 3,087 deletions.
58 changes: 0 additions & 58 deletions .github/workflows/realease-to-npm.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/release-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 🚀 Release to NPM

on:
release:
types: [published]
jobs:
build:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
fetch-depth: 0
- name: Install & cache node dependencies
uses: ./.github/actions/install-node-deps
- name: Build packages
run: yarn package
- name: Set packages versions
run: yarn set-packages-versions $RELEASE_VERSION
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/core/package.json
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/dynamodb-event-storage-adapter/package.json
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/inmemory-event-storage-adapter/package.json
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/json-schema-event/package.json
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/zod-event/package.json
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/test-tools/package.json
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ coverage
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# If people use virtualenvs for python scripts
.venv
Expand Down
8 changes: 4 additions & 4 deletions demo/blueprint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@castore/demo-blueprint",
"version": "1.0.3",
"license": "MIT",
"homepage": "https://github.com/theodo/castore#readme",
"bugs": "https://github.com/theodo/castore/issues",
Expand Down Expand Up @@ -30,7 +29,6 @@
},
"dependencies": {
"@babel/runtime": "^7.18.3",
"@castore/json-schema-event": "^1.0.3",
"uuid": "^8.3.2"
},
"devDependencies": {
Expand All @@ -39,7 +37,8 @@
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@castore/core": "^1.0.3",
"@castore/core": "workspace:",
"@castore/json-schema-event": "workspace:",
"@types/node": "^17.0.29",
"@zerollup/ts-transform-paths": "^1.7.18",
"babel-plugin-module-resolver": "^4.1.0",
Expand Down Expand Up @@ -70,7 +69,8 @@
}
},
"peerDependencies": {
"@castore/core": "^0.7.0",
"@castore/core": "*",
"@castore/json-schema-event": "*",
"json-schema-to-ts": "^2.0.0",
"uuid": "^8.3.2"
}
Expand Down
7 changes: 3 additions & 4 deletions demo/implementation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@castore/demo-implementation",
"version": "1.0.3",
"license": "UNLICENSED",
"sideEffects": false,
"scripts": {
Expand All @@ -20,9 +19,9 @@
},
"dependencies": {
"@aws-sdk/client-dynamodb": "^3.121.0",
"@castore/core": "^1.0.3",
"@castore/demo-blueprint": "^1.0.3",
"@castore/dynamodb-event-storage-adapter": "^1.0.3",
"@castore/core": "workspace:",
"@castore/demo-blueprint": "workspace:",
"@castore/dynamodb-event-storage-adapter": "workspace:",
"@middy/core": "^3.0.4",
"@middy/validator": "^3.0.4",
"source-map-support": "^0.5.19"
Expand Down
5 changes: 2 additions & 3 deletions demo/visualization/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@castore/demo-visualization",
"version": "1.0.3",
"scripts": {
"lint-fix": "yarn linter-base-config --fix",
"lint-fix-all": "yarn lint-fix .",
Expand All @@ -26,8 +25,8 @@
},
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@castore/core": "^1.0.3",
"@castore/demo-blueprint": "^1.0.3",
"@castore/core": "workspace:",
"@castore/demo-blueprint": "workspace:",
"@emotion/react": "^11.9.3",
"@emotion/styled": "^11.9.3",
"@material-ui/core": "^4.12.4",
Expand Down
9 changes: 0 additions & 9 deletions lerna.json

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"linter-base-config": "eslint",
"package": "nx run-many --target=package --all --parallel=4",
"postinstall": "husky install && syncpack format",
"release": "yarn package && yarn lerna publish",
"resolve-audit": "resolve-audit --yarn",
"set-packages-versions": "yarn ts-node scripts/setPackagesVersions",
"test": "nx run-many --target=test --all --parallel=4",
"test-affected": "nx affected --target=test",
"test-circular": "yarn depcruise --validate dependency-cruiser.js .",
Expand Down Expand Up @@ -53,14 +53,14 @@
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"lerna": "^4.0.0",
"lint-staged": "^12.4.1",
"lodash": "^4.17.21",
"npm-audit-resolver": "^3.0.0-7",
"nx": "^14.0.3",
"prettier": "^2.6.2",
"syncpack": "^7.0.0",
"ts-jest": "^28.0.2",
"ts-node": "^10.9.1",
"typescript": "^4.6.3"
},
"engines": {
Expand Down
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@castore/core",
"version": "1.0.3",
"license": "MIT",
"homepage": "https://github.com/theodo/castore#readme",
"bugs": "https://github.com/theodo/castore/issues",
Expand Down
5 changes: 2 additions & 3 deletions packages/dynamodb-event-storage-adapter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@castore/dynamodb-event-storage-adapter",
"version": "1.0.3",
"license": "MIT",
"homepage": "https://github.com/theodo/castore#readme",
"bugs": "https://github.com/theodo/castore/issues",
Expand Down Expand Up @@ -48,7 +47,7 @@
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@castore/core": "^1.0.3",
"@castore/core": "workspace:",
"@serverless/typescript": "^3.15.2",
"@types/lodash": "^4.14.182",
"@types/node": "^17.0.29",
Expand Down Expand Up @@ -80,6 +79,6 @@
},
"peerDependencies": {
"@aws-sdk/client-dynamodb": "^3.0.0",
"@castore/core": "^0.7.0"
"@castore/core": "*"
}
}
3 changes: 3 additions & 0 deletions packages/dynamodb-event-storage-adapter/src/dynamoDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import type { AttributeValue, DynamoDBClient } from '@aws-sdk/client-dynamodb';
import { Marshaller } from '@aws/dynamodb-auto-marshaller';
import get from 'lodash/get';

/**
* @debt decoupling "TODO: Only import types here, EventAlreadyExistsError is problematic"
*/
import {
EventAlreadyExistsError,
EventDetail,
Expand Down
5 changes: 2 additions & 3 deletions packages/inmemory-event-storage-adapter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@castore/inmemory-event-storage-adapter",
"version": "1.0.3",
"license": "MIT",
"homepage": "https://github.com/theodo/castore#readme",
"bugs": "https://github.com/theodo/castore/issues",
Expand Down Expand Up @@ -46,7 +45,7 @@
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@castore/core": "^1.0.3",
"@castore/core": "workspace:",
"@types/lodash": "^4.14.182",
"@types/node": "^17.0.29",
"@zerollup/ts-transform-paths": "^1.7.18",
Expand Down Expand Up @@ -76,6 +75,6 @@
}
},
"peerDependencies": {
"@castore/core": "^0.7.0"
"@castore/core": "*"
}
}
5 changes: 2 additions & 3 deletions packages/json-schema-event/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@castore/json-schema-event",
"version": "1.0.3",
"license": "MIT",
"homepage": "https://github.com/theodo/castore#readme",
"bugs": "https://github.com/theodo/castore/issues",
Expand Down Expand Up @@ -46,7 +45,7 @@
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@castore/core": "^1.0.3",
"@castore/core": "workspace:",
"@types/node": "^17.0.29",
"@zerollup/ts-transform-paths": "^1.7.18",
"babel-plugin-module-resolver": "^4.1.0",
Expand Down Expand Up @@ -76,7 +75,7 @@
}
},
"peerDependencies": {
"@castore/core": "^0.7.0",
"@castore/core": "*",
"json-schema-to-ts": "^2.0.0"
}
}
11 changes: 4 additions & 7 deletions packages/test-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@castore/test-tools",
"version": "1.0.3",
"license": "MIT",
"homepage": "https://github.com/theodo/castore#readme",
"bugs": "https://github.com/theodo/castore/issues",
Expand Down Expand Up @@ -38,16 +37,16 @@
"watch": "rm -rf dist && concurrently 'yarn:package-* --watch'"
},
"dependencies": {
"@castore/core": "^1.0.3",
"@castore/inmemory-event-storage-adapter": "^1.0.3"
"@castore/inmemory-event-storage-adapter": "workspace:"
},
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.17.9",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@castore/demo-blueprint": "^1.0.3",
"@castore/core": "workspace:",
"@castore/demo-blueprint": "workspace:",
"@types/node": "^17.0.29",
"@zerollup/ts-transform-paths": "^1.7.18",
"babel-plugin-module-resolver": "^4.1.0",
Expand Down Expand Up @@ -76,8 +75,6 @@
}
},
"peerDependencies": {
"@castore/core": "^0.7.3",
"@castore/demo-blueprint": "^0.7.3",
"@castore/inmemory-event-storage-adapter": "^0.7.3"
"@castore/core": "*"
}
}
5 changes: 2 additions & 3 deletions packages/zod-event/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@castore/zod-event",
"version": "1.0.3",
"license": "MIT",
"homepage": "https://github.com/theodo/castore#readme",
"bugs": "https://github.com/theodo/castore/issues",
Expand Down Expand Up @@ -46,7 +45,7 @@
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@castore/core": "^1.0.3",
"@castore/core": "workspace:",
"@types/node": "^17.0.29",
"@zerollup/ts-transform-paths": "^1.7.18",
"babel-plugin-module-resolver": "^4.1.0",
Expand Down Expand Up @@ -76,7 +75,7 @@
}
},
"peerDependencies": {
"@castore/core": "^0.7.0",
"@castore/core": "*",
"zod": "^3.0.0"
}
}
Loading

0 comments on commit 46a75ef

Please sign in to comment.