diff --git a/.github/workflows/end-to-end.yml b/.github/workflows/end-to-end.yml index d391494..c02bb63 100644 --- a/.github/workflows/end-to-end.yml +++ b/.github/workflows/end-to-end.yml @@ -4,7 +4,6 @@ on: pull_request: push: branches: - - build/* - master - next - +([0-9])?(.{+([0-9]),x}).x diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 433c8f5..6f1a5c7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,23 @@ jobs: - name: install-node uses: actions/setup-node@master + - name: semantic-release-prerequisites + run: | + npm install --no-package-lock --no-save \ + @semantic-release/commit-analyzer \ + @semantic-release/release-notes-generator \ + @semantic-release/changelog \ + @semantic-release/exec \ + @semantic-release/github + + - name: semantic-release-dry-run + run: npx semantic-release --ci --dry-run + if: ${{ github.event.repository.fork }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: semantic-release - run: npx semantic-release + run: npx semantic-release --ci + if: ${{ !github.event.repository.fork }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}