Skip to content

Commit

Permalink
chore: Add CI/CD for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
iainjreid committed Aug 18, 2022
1 parent 6de775b commit b10a6c2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 20 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand All @@ -33,5 +35,10 @@
},
"bugs": {
"url": "https://github.com/emphori/compose/issues"
},
"release": {
"branches": [
"main"
]
}
}
9 changes: 0 additions & 9 deletions types/index.d.ts

This file was deleted.

0 comments on commit b10a6c2

Please sign in to comment.