From 796ab7bf417a5ce17ea1cdea397757dab27e8a3d Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Mon, 28 Oct 2019 04:09:40 -0400 Subject: [PATCH 1/2] Fix deploying to NPM This changes the NPM registry URL to point to the actual NPM registry instead of the GitHub package registry. --- .github/workflows/package-deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/package-deploy.yml b/.github/workflows/package-deploy.yml index 7a42796f..1e40269e 100644 --- a/.github/workflows/package-deploy.yml +++ b/.github/workflows/package-deploy.yml @@ -46,8 +46,7 @@ jobs: uses: actions/setup-node@v1 with: node-version: 8 - registry-url: https://npm.pkg.github.com/ - scope: '@select2' + registry-url: 'https://registry.npmjs.org' - name: npm install run: npm install - name: Run linting, tests, minify From 37773d408f2fa43cd22f78ff6d3677b126aac654 Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Mon, 28 Oct 2019 04:10:33 -0400 Subject: [PATCH 2/2] Delay documentation deployment This should hopefully fix any possible issues where the NPM package may be released after the documentation is deployed, which could cause a cause miss by jsDelivr and cause the documentation to cache without pulling in the Select2 dependency. It hasn't happened yet, but I'm concerned it could happen and I don't want to put in the effort to make a more sophisticated way of handling this issue. --- .github/workflows/docs-deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index c7bcca8a..086c9126 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -7,6 +7,9 @@ jobs: name: Deploy Grav runs-on: ubuntu-latest steps: + - uses: maddox/actions/sleep@master + with: + args: "60" - uses: actions/checkout@v1 - name: Copy to documentation server uses: maxheld83/rsync@v0.1.0