diff --git a/.github/workflows/docs-dev.yml b/.github/workflows/docs-dev.yml index 5b830bf4..8dc25d3c 100644 --- a/.github/workflows/docs-dev.yml +++ b/.github/workflows/docs-dev.yml @@ -1,10 +1,9 @@ name: docs-dev -on: workflow_dispatch - # trigger deployment on every push to main branch - #push: - #branches-ignore: [master] - # trigger deployment manually +on: + pull_request: + branches-ignore: + - main jobs: docs-dev: @@ -13,12 +12,11 @@ jobs: pages: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - # This version of Vitepress need node v12 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: - node-version: 22 + node-version: 24 - run: yarn install # run build script @@ -26,16 +24,3 @@ jobs: run: yarn build env: VITEPRESS_BASE: /pinguinoide.github.io/ - - # please check out the docs of the workflow for more details - # @see https://github.com/crazy-max/ghaction-github-pages - - name: Deploy to GitHub Pages - uses: crazy-max/ghaction-github-pages@v4 - with: - # deploy to gh-pages branch - target_branch: gh-pages - # deploy the default output dir of VitePress - build_dir: site/.vitepress/dist - env: - # @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/docs-prod.yml b/.github/workflows/docs-prod.yml index dd202fa0..a89e30d3 100644 --- a/.github/workflows/docs-prod.yml +++ b/.github/workflows/docs-prod.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v6 # This version of Vitepress need node v12 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version: 24 - run: yarn install @@ -31,7 +31,7 @@ jobs: # please check out the docs of the workflow for more details # @see https://github.com/crazy-max/ghaction-github-pages - name: Deploy to GitHub Pages - uses: crazy-max/ghaction-github-pages@v4 + uses: crazy-max/ghaction-github-pages@v5 with: # deploy to gh-pages branch target_branch: gh-pages diff --git a/Dockerfile b/Dockerfile index 56afe647..bfeb5ac7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:22-alpine +FROM node:24-alpine WORKDIR /app RUN apk add --no-cache git RUN yarn global add vitepress babel-loader diff --git a/package.json b/package.json index b323a055..2ccccd9a 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,6 @@ "build": "vitepress build site" }, "dependencies": { - "vitepress": "^2.0.0-alpha.11" + "vitepress": "^2.0.0-alpha.17" } }