diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 98f963ed..134b6f88 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -4,24 +4,27 @@ on: branches: [main] paths: - 'docs/**' + jobs: build-and-deploy: runs-on: ubuntu-latest steps: - - name: Checkout 🛎️ - uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. + - name: Checkout + uses: actions/checkout@v3.5.3 with: persist-credentials: false - - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. + - name: Install and Build 🔧 run: | npm install + export NODE_OPTIONS=--openssl-legacy-provider npm run build - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@3.7.1 + uses: JamesIves/github-pages-deploy-action@v4.4.2 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages # The branch the action should deploy to. - FOLDER: docs/.vuepress/dist # The folder the action should deploy. - CLEAN: true # Automatically remove deleted files from the deploy branch + token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages # The branch the action should deploy to. + folder: docs/.vuepress/dist # The folder the action should deploy. + clean: true # Automatically remove deleted files from the deploy branch + dry-run: false # Set to true for convenient GitHub action testing diff --git a/.gitignore b/.gitignore index 662444fa..fad821a2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,10 @@ build composer.lock -vendor coverage +node_modules +package-lock.json phpunit.xml +vendor .phpunit.result.cache .phpunit.cache .idea diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index ae70e67d..955fc050 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -81,5 +81,10 @@ module.exports = { hostname: "https://www.cashiermollie.com" }, ], - ] + ], + configureWebpack: { + output: { + hashFunction: "sha256", + }, + }, } diff --git a/package.json b/package.json index e3800a39..cb5bf390 100644 --- a/package.json +++ b/package.json @@ -1,24 +1,24 @@ { - "name": "cashiermollie.com", - "version": "1.0.0", - "description": "Laravel Cashier provides an expressive, fluent interface to subscriptions using Mollie's billing services.", - "main": "index.js", - "scripts": { - "dev": "vuepress dev docs", - "build": "vuepress build docs", - "serve": "npm run dev" - }, - "repository": "git@github.com:ciungulete/cashiermollie.com.git", - "author": "Andrei Ciungulete ", - "license": "MIT", - "dependencies": { - "global": "^4.3.2", - "vuepress": "^1.7.1" - }, - "devDependencies": { - "@mr-hope/vuepress-plugin-sitemap": "^1.21.0", - "@vuepress/plugin-pwa": "^1.7.1", - "prettier": "2.1.2", - "vuepress-plugin-seo": "^0.1.4" - } + "name": "cashiermollie.com", + "version": "1.0.0", + "description": "Laravel Cashier provides an expressive, fluent interface to subscriptions using Mollie's billing services.", + "main": "index.js", + "scripts": { + "dev": "vuepress dev docs", + "build": "vuepress build docs", + "serve": "npm run dev" + }, + "repository": "git@github.com:mollie/laravel-cashier-mollie.git", + "author": "Sander van Hooft", + "license": "MIT", + "dependencies": { + "global": "^4.4", + "vuepress": "^1.7" + }, + "devDependencies": { + "@mr-hope/vuepress-plugin-sitemap": "^1.30", + "@vuepress/plugin-pwa": "^1.9", + "prettier": "^2.8", + "vuepress-plugin-seo": "^0.2" + } }