Skip to content

Commit

Permalink
fix: add changelog and npm version to the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasgloning committed May 5, 2022
1 parent 87d7bd9 commit d5bd955
Show file tree
Hide file tree
Showing 5 changed files with 155 additions and 11 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- rc
- stable
jobs:
release:
name: Release
Expand All @@ -18,8 +19,18 @@ jobs:
node-version: "lts/*"
- name: Install dependencies
run: npm ci
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_COMMITTER_NAME: ${{ steps.import_gpg.outputs.name }}
GIT_COMMITTER_EMAIL: ${{ steps.import_gpg.outputs.email }}
run: npx semantic-release
12 changes: 11 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
{ "branches": ["stable", { "name": "rc", "prerelease": true }] }
{
"branches": ["stable", { "name": "rc", "prerelease": true }],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/github"
]
}
8 changes: 0 additions & 8 deletions changelog.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
# Change Log

All notable changes will be documented in this file.

## vNEXT

...

<a name="1.3.2"></a>

## 1.3.2 (2021-03-11)
Expand Down
129 changes: 129 additions & 0 deletions package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@
"devDependencies": {
"@parcel/packager-ts": "^2.5.0",
"@parcel/transformer-typescript-types": "^2.5.0",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@types/chai": "^4.3.0",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.18",
Expand All @@ -154,10 +156,10 @@
"mock-socket": "8.0.5",
"parcel": "^2.5.0",
"prettier": "^2.6.2",
"semantic-release": "^19.0.2",
"standard": "^16.0.4",
"ts-node": "^10.5.0",
"typescript": "^4.5.5",
"semantic-release": "^19.0.2"
"typescript": "^4.5.5"
},
"dependencies": {
"eventemitter3": "^3.1.2",
Expand Down

0 comments on commit d5bd955

Please sign in to comment.