Skip to content

Commit

Permalink
fix: release action (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
admon84 authored Jun 23, 2024
1 parent 9c45098 commit e501141
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,8 @@ jobs:
run: npm run build
- name: Install semantic-release
run: npm i semantic-release @semantic-release/commit-analyzer @semantic-release/github @semantic-release/npm @semantic-release/release-notes-generator
- name: Publish
- name: Publish and commit version changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Commit changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add package.json
git diff --quiet && git diff --staged --quiet || (git commit -m "chore: release [skip ci]" && git push)
run: bash scripts/release.sh
4 changes: 2 additions & 2 deletions package-lock.json

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

5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@
},
"dependencies": {
"@ladjs/koa-views": "^9.0.0",
"@semantic-release/commit-analyzer": "^13.0.0",
"@semantic-release/github": "^10.0.6",
"@semantic-release/npm": "^12.0.1",
"@semantic-release/release-notes-generator": "^14.0.1",
"argparse": "2.0.1",
"chalk": "^5.3.0",
"ejs": "^3.1.10",
Expand All @@ -61,7 +57,6 @@
"koa": "2.15.3",
"koa-conditional-get": "3.0.0",
"node-fetch": "^3.3.2",
"semantic-release": "^24.0.0",
"winreg": "^1.2.5"
}
}

0 comments on commit e501141

Please sign in to comment.