Skip to content

Commit

Permalink
feat(build): switch to microbundle and semantic release (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricokahler authored Jan 30, 2021
1 parent 5e3bde3 commit ebd6e23
Show file tree
Hide file tree
Showing 14 changed files with 5,497 additions and 688 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Run tests
run: npm t -- --coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release --dry-run
14 changes: 0 additions & 14 deletions .github/workflows/build.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/code-coverage.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/compressed-size.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/run-tests.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.github
build
coverage
node_modules
scripts
src
website
.eslintrc
.gitignore
.nvmrc
.prettierrc
babel.config.json
jest.config.js
renovate.json
tsconfig.json
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = {
testEnvironment: 'node',
rootDir: __dirname,
modulePathIgnorePatterns: ['<rootDir>/dist/'],
setupFiles: ['<rootDir>/loadershim.js'],
coveragePathIgnorePatterns: [
'<rootDir>/dist/',
'<rootDir>/node_modules/',
Expand Down
8 changes: 0 additions & 8 deletions loadershim.js

This file was deleted.

Loading

0 comments on commit ebd6e23

Please sign in to comment.