Skip to content

Commit 0f19db5

Browse files
committed
Pipeline fix
1 parent 6ba23bb commit 0f19db5

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

.github/workflows/semantic-release.yml

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,28 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1113
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v4
14-
with:
15-
fetch-depth: 0
16-
token: ${{ secrets.GITHUB_TOKEN }}
17-
18-
- name: Setup Node.js
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: '20.x'
22-
cache: 'npm'
23-
24-
- name: Install dependencies
25-
run: npm ci --ignore-scripts
26-
27-
- name: Install semantic-release
28-
run: npm install -g semantic-release @semantic-release/changelog @semantic-release/git @semantic-release/github
29-
30-
- name: Run semantic-release
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
run: semantic-release
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20.x'
24+
cache: 'npm'
25+
26+
- name: Install dependencies
27+
run: npm ci --ignore-scripts
28+
29+
- name: Install semantic-release
30+
run: npm install -g semantic-release @semantic-release/changelog @semantic-release/git @semantic-release/github
31+
32+
- name: Run semantic-release
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
run: semantic-release

0 commit comments

Comments
 (0)