Skip to content

Commit

Permalink
chore: sematic-release on protected branch (#56)
Browse files Browse the repository at this point in the history
## Motivation

* [Use a custom PAT in order to create a release on a
protected-branch](https://github.com/semantic-release/semantic-release/blob/8fda7fd423d24e7b425fbee83790f49dd0478e2d/docs/recipes/ci-configurations/github-actions.md#pushing-packagejson-changes-to-a-master-branch)
* Use "windows-latest" runner as we don't need the custom
"windows-latest-l" runner (reduce cost)
  • Loading branch information
TimPietrusky authored Feb 23, 2024
1 parent 4feace7 commit df10e60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
release:
runs-on: windows-latest-l
runs-on: windows-latest
if: ${{ !contains(github.event.head_commit.message, 'chore(release)') }}
permissions:
contents: write # to be able to publish a GitHub release
Expand All @@ -18,6 +18,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Setup node
uses: actions/setup-node@v4
Expand All @@ -36,4 +38,4 @@ jobs:
- name: Semantic release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.BLIBLA_SEMANTIC_RELEASE }}

0 comments on commit df10e60

Please sign in to comment.