Skip to content

Commit 7d0bf06

Browse files
ci: cleanup release workflow
correctly sets permissions needed for the release, and removes an uneeded run check.
1 parent 24652f0 commit 7d0bf06

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/publish.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
1-
name: 🚀 Publish
1+
---
2+
name: 🚀 Release
23
on:
34
push:
45
branches:
56
- main
6-
77
env:
88
HUSKY: 0
9-
9+
permissions:
10+
contents: read
1011
jobs:
1112
publish:
12-
name: Publish
13+
name: 🚀 Publish
1314
runs-on: ubuntu-latest
14-
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
15+
permissions:
16+
contents: write
17+
issues: write
18+
pull-requests: write
19+
id-token: write
1520
steps:
16-
- name: Checkout
17-
uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
1822
with:
1923
fetch-depth: 0
2024
persist-credentials: false
21-
- name: Publish
22-
uses: cycjimmy/semantic-release-action@v3
25+
- uses: cycjimmy/semantic-release-action@v3
2326
with:
2427
semantic_version: 19.x
2528
branch: main

0 commit comments

Comments
 (0)