Skip to content

Commit

Permalink
chore(ci): init sem-rel
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSwitch committed Apr 10, 2021
1 parent 1e534ce commit bbc02f8
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@

name: CI

on: [push]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm i
- run: npm test

release:
needs:
- test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm i @semantic-release/changelog @semantic-release/git
- uses: codfish/semantic-release-action@v1
with:
dry_run: true
branches: |
["modernize"]
plugins: |
[
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": [
"package*.json",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"repository": {
"type": "git",
"url": "git@github.com/MrSwitch/localhost"
"url": "https://github.com/MrSwitch/localhost.git"
},
"author": "Andrew Dodson <andrewjdodson@gmail.com>",
"license": "BSD",
Expand Down

0 comments on commit bbc02f8

Please # to comment.