From bbc02f8ff72432b0aac2b1c8cf07d7b5e59419c5 Mon Sep 17 00:00:00 2001 From: Andrew Dodson Date: Sat, 10 Apr 2021 22:38:04 +0100 Subject: [PATCH] chore(ci): init sem-rel --- .github/workflows/ci.yml | 52 ++++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8c20c95 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/package.json b/package.json index d948e4f..acc703c 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ ], "repository": { "type": "git", - "url": "git@github.com/MrSwitch/localhost" + "url": "https://github.com/MrSwitch/localhost.git" }, "author": "Andrew Dodson ", "license": "BSD",