Skip to content

Commit 4ed13aa

Browse files
author
Herbert D Ludowieg
authored
Update master.yml
Added the node version lock to all workflows to publish the code.
1 parent 828d7c9 commit 4ed13aa

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/master.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
sphinx-build docs/source _build
7878
- name: Deploy
7979
uses: peaceiris/actions-gh-pages@v3
80-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
80+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
8181
with:
8282
publish_branch: gh-pages
8383
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -97,6 +97,10 @@ jobs:
9797
- uses: actions/setup-python@v2
9898
with:
9999
python-version: ${{ matrix.python-version }}
100+
- name: Use Node.js version 16
101+
uses: actions/setup-node@v3
102+
with:
103+
node-version: "16.19.1"
100104
- uses: actions/cache@v2
101105
with:
102106
path: ${{ env.pythonLocation }}
@@ -147,7 +151,7 @@ jobs:
147151
- uses: actions/checkout@v2
148152
- uses: actions/setup-node@v2
149153
with:
150-
node-version: '16'
154+
node-version: '16.19.1'
151155
- name: Publish NPM Package
152156
shell: bash -l {0}
153157
run: |

0 commit comments

Comments
 (0)