Skip to content

Commit

Permalink
chore: automatic publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeolun committed Jul 7, 2022
1 parent e1928ec commit 026901d
Show file tree
Hide file tree
Showing 5 changed files with 2,827 additions and 4,330 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
custom: https://www.buymeacoffee.com/cAHgxoB
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "lts/*"
- uses: pnpm/action-setup@v2.2.2
with:
version: latest
- name: Install dependencies
run: pnpm i
- name: Build application
run: pnpm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm dlx semantic-release
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
"sass": "^1.53.0"
},
"devDependencies": {
"@semantic-release/changelog": "6.0.1",
"@semantic-release/git": "10.0.1",
"@testing-library/react": "^12.1.5",
"@types/diff": "^5.0.2",
"@types/expect": "^1.20.3",
Expand Down Expand Up @@ -79,6 +81,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"sass-loader": "^13.0.2",
"semantic-release": "^19.0.3",
"spy": "^1.0.0",
"ts-loader": "^9.3.1",
"ts-node": "^10.8.2",
Expand Down
Loading

0 comments on commit 026901d

Please sign in to comment.