From 0ff3d8a812710b02cae26631a7af257f76448637 Mon Sep 17 00:00:00 2001 From: Arturas Date: Thu, 6 May 2021 00:32:49 +0100 Subject: [PATCH] ci: Fix releases & branch protection --- .github/workflows/core.yml | 9 +++++---- .releaserc.js | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 32a4f29..bebe924 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -129,6 +129,7 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 1000 + token: ${{ secrets.RELEASE_TOKEN }} - uses: actions/setup-node@v2 name: Set up node with: @@ -157,10 +158,10 @@ jobs: - name: Install deps run: npm ci --no-fund --no-audit env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.RELEASE_TOKEN }} - name: Release run: npm run release env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.RELEASE_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.RELEASE_TOKEN }} + NPM_TOKEN: ${{ secrets.RELEASE_TOKEN }} diff --git a/.releaserc.js b/.releaserc.js index f772fc0..d4fb359 100644 --- a/.releaserc.js +++ b/.releaserc.js @@ -27,7 +27,7 @@ module.exports = { 'package-lock.json', ...projectNames.flatMap(n => [`projects/${n}/package.json`, `projects/${n}.README.md`]) ], - message: 'chore(release): ${nextRelease.version}', + message: 'chore(release): ${nextRelease.version}\n\n[ci skip]', path: '@semantic-release/git' }, exec('npm run rollup')