Skip to content

Commit

Permalink
ci: Fix releases & branch protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed May 5, 2021
1 parent fd028b4 commit 0ff3d8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .releaserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 0ff3d8a

Please sign in to comment.