diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6709c36 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +name: Release +on: + push: + branches: + - master + - feature/semantic-release +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npx -p @semantic-release/changelog -p @semantic-release/git -p semantic-release semantic-release --dry-run \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 31ce5b4..8a4f096 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,8 @@ name: Compile and Test -on: [push] - +on: + pull_request: + branches: + - master jobs: ShellTest: strategy: diff --git a/release.config.js b/release.config.js new file mode 100644 index 0000000..3eed07c --- /dev/null +++ b/release.config.js @@ -0,0 +1,11 @@ +module.exports = { + branches: ['master', 'feature/semantic-release'], + plugins: [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/github", + '@semantic-release/changelog', + '@semantic-release/github', + '@semantic-release/git', + ], +};