Skip to content

Commit

Permalink
feat: test semrel
Browse files Browse the repository at this point in the history
  • Loading branch information
DuCanhGH committed Oct 6, 2022
1 parent a7bfd2e commit c300669
Show file tree
Hide file tree
Showing 6 changed files with 1,761 additions and 378 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.js
Expand Up @@ -23,7 +23,7 @@ module.exports = {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react", "react-hooks", "@typescript-eslint"],
plugins: ["react", "react-hooks", "@typescript-eslint", "simple-import-sort"],
settings: {
react: {
version: "detect",
Expand All @@ -49,5 +49,7 @@ module.exports = {
ignoreReadBeforeAssign: false,
},
],
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
},
};
31 changes: 30 additions & 1 deletion .github/workflows/main.yml
Expand Up @@ -9,7 +9,7 @@ jobs:
node-version: ["16.x"]
pnpm-version: ["7.x"]
os: [ubuntu-latest, windows-latest, macOS-latest]
if: "!contains(github.event.head_commit.message, '[skip ci]')"
if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[skip ci]') }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -32,3 +32,32 @@ jobs:
run: pnpm test
- name: Build
run: pnpm build
publish:
name: Release
needs: [build]
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: ["16.x"]
pnpm-version: ["7.x"]
os: [ubuntu-latest]
if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[skip ci]') }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Use pnpm
uses: pnpm/action-setup@v2
with:
version: ${{ matrix.pnpm-version }}
- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
24 changes: 16 additions & 8 deletions package.json
Expand Up @@ -47,34 +47,42 @@
"react": ">=16.8.0"
},
"devDependencies": {
"@semantic-release/changelog": "6.0.1",
"@semantic-release/commit-analyzer": "9.0.2",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "8.0.6",
"@semantic-release/npm": "9.0.1",
"@semantic-release/release-notes-generator": "10.0.3",
"@size-limit/preset-small-lib": "8.1.0",
"@size-limit/webpack": "8.1.0",
"@size-limit/webpack-why": "8.1.0",
"@testing-library/react": "13.4.0",
"@types/jest": "29.0.3",
"@types/jest": "29.1.1",
"@types/react": "18.0.21",
"@types/react-dom": "18.0.6",
"@typescript-eslint/eslint-plugin": "5.38.0",
"@typescript-eslint/parser": "5.38.0",
"@typescript-eslint/eslint-plugin": "5.39.0",
"@typescript-eslint/parser": "5.39.0",
"eslint": "8.24.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.31.8",
"eslint-plugin-react-hooks": "4.6.0",
"hls.js": "1.2.3",
"jest": "29.0.3",
"jest-environment-jsdom": "29.0.3",
"eslint-plugin-simple-import-sort": "8.0.0",
"hls.js": "1.2.4",
"jest": "29.1.2",
"jest-environment-jsdom": "29.1.2",
"microbundle": "0.15.1",
"prettier": "2.7.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"rimraf": "3.0.2",
"semantic-release": "19.0.5",
"size-limit": "8.1.0",
"ts-jest": "29.0.2",
"ts-jest": "29.0.3",
"tslib": "2.4.0",
"typescript": "4.8.3",
"typescript": "4.8.4",
"webpack": "5.74.0"
},
"size-limit": [
Expand Down

0 comments on commit c300669

Please sign in to comment.