Skip to content

Commit 8e29780

Browse files
committed
fix: github action permission
1 parent 3641aff commit 8e29780

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ on:
55
branches-ignore:
66
- "release-please*"
77

8-
permissions:
9-
pages: write
10-
id-token: write
8+
permissions: write-all
119

1210
jobs:
1311
release-please:
@@ -77,7 +75,7 @@ jobs:
7775
run: pnpm --filter @monerium/sdk pub:pre
7876
env:
7977
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
80-
if: ${{ needs.release-please.outputs.releases_created == false }}
78+
if: needs.release-please.outputs.releases_created == 'false'
8179

8280
- name: Publish SDK
8381
run: pnpm --filter @monerium/sdk publish --access public
@@ -95,9 +93,12 @@ jobs:
9593
environment:
9694
name: github-pages
9795
runs-on: ubuntu-latest
98-
needs: build
99-
if: github.ref == 'refs/heads/main'
96+
needs: [build, release-please]
10097
steps:
98+
- name: Dummy Step
99+
if: needs.release-please.outputs.releases_created == 'true'
100+
run: echo "Releases were created"
101101
- name: Deploy to GitHub Pages
102102
id: docs-deployment
103+
if: github.ref == 'refs/heads/main'
103104
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)