Skip to content

Commit

Permalink
ci(release): make releasing work with branch protections
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Oct 31, 2021
1 parent 06235ef commit a094648
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ jobs:
node-version: "12.x"
- run: npm ci
- run: npm run build
- run: rm .gitignore # dist/ folder is ignored by default
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
git config user.name github-actions
git config user.email [email protected]
git add .gitignore dist/
git commit -m "build"
- run: "git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v1"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit a094648

Please sign in to comment.