Skip to content

Commit

Permalink
chore: add Semantic Release (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff authored Sep 13, 2023
1 parent 2005c62 commit ce1c351
Show file tree
Hide file tree
Showing 6 changed files with 11,092 additions and 4,249 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/semantic-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Semantic Release
on:
push:
branches:
- 'main'

jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm install
- run: npm test
- run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ coverage
logs/*
node_modules/*

.DS_Store
.DS_Store
upstream
19 changes: 19 additions & 0 deletions .releaserc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/changelog", {
"changelogFile": "CHANGELOG.md",
}],
"@semantic-release/npm",
['@semantic-release/git', {
assets: ['package.json', 'package-lock.json', 'CHANGELOG.md'],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}],
["@semantic-release/github", {}],
["@semantic-release/exec", {
"publishCmd": "./publish.sh ${nextRelease.version} ${nextRelease.type}"
}],
],
branches: ['main'],
};
Loading

0 comments on commit ce1c351

Please sign in to comment.