From 1951d3d0023d47dda40daafdf8cb3e2b621c8310 Mon Sep 17 00:00:00 2001 From: Michel Nemnom <1678801+Pegase745@users.noreply.github.com> Date: Tue, 30 Jun 2020 19:31:32 +0200 Subject: [PATCH] fix(release): try again to fix the release from CI --- .github/workflows/node.js.yml | 24 ++---------------------- .releaserc | 2 +- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 017faf1..6d05a86 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -48,6 +48,7 @@ jobs: Release: runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' needs: Test steps: - uses: actions/checkout@v2 @@ -55,28 +56,7 @@ jobs: with: node-version: 12.x - run: npm ci - - run: npm run build - - name: Semantic Release - uses: cycjimmy/semantic-release-action@v2 - with: - branches: | - [ - '+([0-9])?(.{+([0-9]),x}).x', - 'master', - 'next', - 'next-major', - { - name: 'beta', - prerelease: true - }, - { - name: 'alpha', - prerelease: true - } - ] - extra_plugins: | - '@semantic-release/changelog' - '@semantic-release/git' + - run: npm run release env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.releaserc b/.releaserc index bafbf3b..ca35080 100644 --- a/.releaserc +++ b/.releaserc @@ -14,7 +14,7 @@ { "assets": [ "package.json", - "yarn.lock", + "package-lock.json", "CHANGELOG.md" ], "message": "chore(release): version ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"