Skip to content

Commit d4fc315

Browse files
committed
3: attempt to deploy only from master
1 parent 341d3f9 commit d4fc315

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/node.js.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI
22

33
permissions:
4-
contents: read
4+
contents: write
55
pages: write
66
id-token: write
77

@@ -32,7 +32,7 @@ jobs:
3232
- run: npm run build
3333
- run: npm run demo
3434
- name: Upload demo files as artifact
35-
if: ${{ matrix.node-version == 22 }} # && github.ref == 'refs/heads/main'
35+
if: ${{ matrix.node-version == 22 }}
3636
id: deployment
3737
uses: actions/upload-pages-artifact@v3
3838
with:
@@ -93,5 +93,6 @@ jobs:
9393
needs: build
9494
steps:
9595
- name: Deploy Demo to GitHub Pages
96+
if: ${{ github.ref == 'refs/heads/main'}}
9697
id: deployment
9798
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)