From d3ea7da626ffb5817a5f36f91c158cfe6e55e5f8 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Tue, 5 Sep 2023 11:16:38 +0800 Subject: [PATCH] chore: update github actions wangdoc.yml --- .github/workflows/wangdoc.yml | 26 +++++++++++++------------- package.json | 13 +++---------- 2 files changed, 16 insertions(+), 23 deletions(-) diff --git a/.github/workflows/wangdoc.yml b/.github/workflows/wangdoc.yml index 8ba69af..3214e3a 100644 --- a/.github/workflows/wangdoc.yml +++ b/.github/workflows/wangdoc.yml @@ -10,27 +10,27 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Setup Node.js uses: actions/setup-node@main with: - node-version: '14' + node-version: 'latest' - name: Install dependencies run: npm install - name: Build pages run: npm run build - name: Deploy to website - uses: JamesIves/github-pages-deploy-action@3.7.1 + uses: JamesIves/github-pages-deploy-action@v4 with: - GIT_CONFIG_NAME: wangdoc-bot - GIT_CONFIG_EMAIL: yifeng.ruan@gmail.com - REPOSITORY_NAME: wangdoc/website - ACCESS_TOKEN: ${{ secrets.WANGDOC_BOT_TOKEN }} - BASE_BRANCH: master - BRANCH: master # The branch the action should deploy to. - FOLDER: dist # The folder the action should deploy. - TARGET_FOLDER: dist/webapi - CLEAN: true # Automatically remove deleted files from the deploy branch - COMMIT_MESSAGE: update from Web API tutorial + git-config-name: wangdoc-bot + git-config-email: yifeng.ruan@gmail.com + repository-name: wangdoc/website + token: ${{ secrets.WANGDOC_BOT_TOKEN }} + branch: master # The branch the action should deploy to. + folder: dist # The folder the action should deploy. + target-folder: dist/typescript + clean: true # Automatically remove deleted files from the deploy branch + commit-message: update from TypeScript tutorial + diff --git a/package.json b/package.json index 7dd0ade..3b307d8 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,6 @@ "chapter": "loppo chapter", "test": "echo \"Error: no test specified\" && exit 1" }, - "husky": { - "hooks": { - "pre-push": "npm update" - } - }, "repository": { "type": "git", "url": "https://github.com/wangdoc/webapi-tutorial.git" @@ -29,11 +24,9 @@ ], "author": "Ruan Yifeng", "license": "Creative Commons Attribution-ShareAlike License", - "devDependencies": {}, "dependencies": { - "gh-pages": "^3.2.3", - "husky": "^4.3.8", - "loppo": "^0.6.24", - "loppo-theme-wangdoc": "^0.6.1" + "gh-pages": "^6.0.0", + "loppo": "^0.6.25", + "loppo-theme-wangdoc": "^0.6.6" } }