diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index be8fc90..b8368d4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,9 +12,17 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 + with: + node-version: current - name: Install dependencies run: npm ci - name: Run tests run: npm t + + - name: Release + uses: emphori/actions/semantic-release@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package-lock.json b/package-lock.json index d9a0926..b3924a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,19 +8,16 @@ "name": "@emphori/compose", "license": "MIT", "devDependencies": { - "@emphori/promise": "../promise", + "@emphori/promise": "^1.0.0", "@types/node": "^18.6.3", "typescript": "^4.7.4" } }, - "../promise": { - "name": "@emphori/promise", - "dev": true, - "license": "MIT" - }, "node_modules/@emphori/promise": { - "resolved": "../promise", - "link": true + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@emphori/promise/-/promise-1.0.0.tgz", + "integrity": "sha512-SvK9lHzMqEYwmQGbIDZXKWSCZnH29CU+LuRfa9jaUljyWWApD292e4SwdcPWqXlXnBTimC5XH+qsofV81Nxdig==", + "dev": true }, "node_modules/@types/node": { "version": "18.6.3", @@ -47,7 +44,10 @@ }, "dependencies": { "@emphori/promise": { - "version": "file:../promise" + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@emphori/promise/-/promise-1.0.0.tgz", + "integrity": "sha512-SvK9lHzMqEYwmQGbIDZXKWSCZnH29CU+LuRfa9jaUljyWWApD292e4SwdcPWqXlXnBTimC5XH+qsofV81Nxdig==", + "dev": true }, "@types/node": { "version": "18.6.3", diff --git a/package.json b/package.json index 02f193b..e312876 100644 --- a/package.json +++ b/package.json @@ -17,10 +17,12 @@ "lib/compose.js" ], "scripts": { - "test": "tsc --noEmit --checkJs --strict --module NodeNext lib/*.js" + "test": "npm run test:types && npm run test:source", + "test:types": "tsc --noEmit --checkJs --strict --module NodeNext lib/*.js", + "test:source": "node --test" }, "devDependencies": { - "@emphori/promise": "../promise", + "@emphori/promise": "^1.0.0", "@types/node": "^18.6.3", "typescript": "^4.7.4" }, @@ -33,5 +35,10 @@ }, "bugs": { "url": "https://github.com/emphori/compose/issues" + }, + "release": { + "branches": [ + "main" + ] } } diff --git a/types/index.d.ts b/types/index.d.ts deleted file mode 100644 index 8b12574..0000000 --- a/types/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @todo Extract this "AssertType" type to its own library - */ -type AssertType = any - -/** - * @todo Extract this "AssertExtends" type to its own library - */ -type AssertExtends = any