diff --git a/.github/workflows/publish_gh_pages.yml b/.github/workflows/publish_gh_pages.yml index 089cdbc..cbed168 100644 --- a/.github/workflows/publish_gh_pages.yml +++ b/.github/workflows/publish_gh_pages.yml @@ -15,10 +15,12 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 1 - - name: Use Node.js + - name: Extract node version + run: echo "NODE_VERSION=$(cat .node_version)" >> $GITHUB_ENV + - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: ${{ env.NODE_VERSION }} - name: Build page run: | npm ci