File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: Node.js CI
22
33on : [push, pull_request]
44
5+ # 🔐 Da permisos de escritura a todo el workflow (necesario para hacer push a gh-pages)
6+ permissions :
7+ contents : write
8+
59jobs :
610 test :
711 runs-on : ubuntu-latest
@@ -31,13 +35,14 @@ jobs:
3135 run : npm run lint:check
3236 - name : Testing JEST
3337 run : npm run test
38+
3439 release :
3540 if : github.ref == 'refs/heads/main'
3641 needs : test
3742 runs-on : ubuntu-latest
3843 permissions :
39- contents : write
40- issues : write
44+ contents : write
45+ issues : write
4146 steps :
4247 - uses : actions/checkout@v4
4348 - uses : actions/setup-node@v4
@@ -118,18 +123,8 @@ jobs:
118123 name : deploy-files
119124 path : ./dist
120125
121- - uses : webfactory/ssh-agent@v0.7.0
122- with :
123- ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
124- - name : Add Know Hosts
125- run : |
126- ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
127- shell : bash
128-
129126 - name : Deploy to GitHub Pages
130127 uses : peaceiris/actions-gh-pages@v4
131- env :
132- GH_TOKEN : eclass:${{ secrets.GITHUB_TOKEN }}
133128 with :
134129 github_token : ${{ secrets.GITHUB_TOKEN }}
135130 publish_dir : ./dist
You can’t perform that action at this time.
0 commit comments