Skip to content

Commit 32f821a

Browse files
committed
chore: update release
1 parent 87c057b commit 32f821a

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/ci.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
runs-on: ubuntu-latest
2626
timeout-minutes: 20
2727

28+
permissions:
29+
packages: write
30+
contents: write
31+
2832
steps:
2933
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
3034
- uses: styfle/[email protected]
@@ -41,7 +45,6 @@ jobs:
4145
uses: actions/setup-node@v3
4246
with:
4347
node-version: 19
44-
cache: 'yarn'
4548

4649
- name: Yarn
4750
run: yarn install --frozen-lockfile
@@ -50,10 +53,8 @@ jobs:
5053
run: |
5154
yarn test
5255
53-
- name: Release Prep
54-
run: |
55-
npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
56-
5756
- name: Release
57+
if: github.ref == 'refs/heads/develop'
5858
run: |
59+
npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
5960
npx semantic-release --no-ci --debug

.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 20
2121

22+
permissions:
23+
packages: write
24+
contents: write
25+
2226
steps:
2327
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
2428
- uses: styfle/[email protected]
@@ -35,7 +39,6 @@ jobs:
3539
uses: actions/setup-node@v3
3640
with:
3741
node-version: 19
38-
cache: 'yarn'
3942

4043
- name: Yarn
4144
run: yarn install --frozen-lockfile
@@ -44,10 +47,7 @@ jobs:
4447
run: |
4548
yarn test
4649
47-
- name: Release Prep
48-
run: |
49-
npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
50-
5150
- name: Release
5251
run: |
52+
npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
5353
npx semantic-release --no-ci --debug

0 commit comments

Comments
 (0)