Skip to content

Commit

Permalink
Merge pull request #207 from commitd/stuarthendren/commitlint
Browse files Browse the repository at this point in the history
fix(ci): build script publish token set up
  • Loading branch information
stuarthendren authored Aug 12, 2021
2 parents 56fedd8 + 130a536 commit 60c1f98
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ jobs:
- name: Checkout Commit
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
- name: Use Node.js
uses: actions/setup-node@v1
with:
Expand All @@ -223,7 +223,11 @@ jobs:
path: dist
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
GIT_AUTHOR_NAME: commitd-bot
GIT_AUTHOR_EMAIL: 56758001+committed-bot@users.noreply.github.com
GIT_COMMITTER_NAME: commitd-bot
GIT_COMMITTER_EMAIL: 56758001+commitd-bot@users.noreply.github.com
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
publish-storybook:
Expand All @@ -233,7 +237,7 @@ jobs:
- name: Checkout Commit
uses: actions/checkout@v2
with:
persist-credentials: false
token: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v1
Expand All @@ -253,4 +257,4 @@ jobs:
if: github.ref == 'refs/heads/main'
run: npm run deploy-storybook -- --ci
env:
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: commitd-bot:${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}

0 comments on commit 60c1f98

Please sign in to comment.