diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index bbbc7e5f..5f0a34af 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -19,17 +19,14 @@ jobs: # selected operation systems to run CI os: [ubuntu-latest] #, windows-latest, macos-latest] # selected node version to run CI - node-version: [18.x] + node-version: [20.10.x] steps: - name: Check Out Repo - uses: actions/checkout@v3 - - - name: Start containers - run: docker-compose -f "docker-compose.yml" up -d + uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: # use the node version defined in matrix above node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..fd410fd7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: Publish to NPM +on: [workflow_dispatch] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '20.10.x' + registry-url: 'https://registry.npmjs.org' + - name: Install dependencies and build 🔧 + run: npm ci && npm run build + + - name: Set public publishing + run: npm config set access public + + - name: Publish package on NPM 📦 + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 6c7ed19f..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,17 +0,0 @@ -version: '3' - -services: - ####################################################### - # Postgres - ####################################################### - postgres: - image: postgres:15.1-alpine - ports: - - '5432:5432' - environment: - - POSTGRES_DB=postgres - - POSTGRES_PASSWORD=Password12! - command: - - 'postgres' - - '-c' - - 'wal_level=logical' diff --git a/package.json b/package.json index 6f31d5b2..4cb6ff19 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "emmett", + "name": "@event-driven-io/emmett", "version": "0.0.1", "description": "Emmett - Event Sourcing made simple", "scripts": { @@ -28,16 +28,16 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/oskardudycz/emmett.git" + "url": "git+https://github.com/event-driven-io/emmett.git" }, "keywords": [ "Event Sourcing" ], "author": "Oskar Dudycz", "bugs": { - "url": "https://github.com/oskardudycz/emmett/issues" + "url": "https://github.com/event-driven-io/emmett/issues" }, - "homepage": "https://github.com/oskardudycz/emmett#readme", + "homepage": "https://github.com/event-driven-io/emmett#readme", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts",