refactor: Drop close
lifecycle methods in favor of overwriting the …
#103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: npm CI | |
on: [push, pull_request] | |
jobs: | |
npm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: "16" | |
registry-url: "https://registry.npmjs.org" | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Cache the dependency directories | |
uses: actions/cache@v2 | |
with: | |
path: | | |
node_modules | |
key: npm | |
- name: Install dependencies with npm | |
run: bun install | |
- name: Run tests with npm | |
run: bun test | |
- name: Build with bun | |
run: bun run build | |
- name: Publish to npm | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ secrets.NPM_AUTH_TOKEN }} | |
access: "public" | |
- name: Publish docs to GitHub pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: typedoc |