diff --git a/.github/workflows/testing_cache_and_push.yml b/.github/workflows/testing_cache_and_push.yml new file mode 100644 index 0000000..9be791a --- /dev/null +++ b/.github/workflows/testing_cache_and_push.yml @@ -0,0 +1,53 @@ +name: Caching with npm + +on: + push: + branches: + - vue3-pinboard + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Cache node modules + id: cache-npm + uses: actions/cache@v3 + env: + cache-name: cache-node-modules + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + + - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} + name: List the state of node modules + continue-on-error: true + run: npm list + + - name: Install dependencies + run: | + printf "@fortawesome:registry=https://npm.fontawesome.com/\n//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}" >> ~/.npmrc + npm ci + npm list + env: + FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FA_AUTH_TOKEN }} + + - name: Build + run: npm run build:testing + + - name: Deploy to Dev s3, Set index headers + env: + AWS_DEFAULT_REGION: 'us-east-1' + AWS_S3_BUCKET: phila-resource-finder-v2/testing/commerce/business-resource-finder/ + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + run: | + aws s3 sync dist s3://$AWS_S3_BUCKET --region us-east-1 --delete + aws s3 cp s3://$AWS_S3_BUCKET s3://$AWS_S3_BUCKET --recursive --exclude "*" --include "*.html" --metadata-directive REPLACE --acl public-read --cache-control max-age=0,no-cache,no-store,must-revalidate,proxy-revalidate,public --expires "0" --content-type "text/html; charset=utf-8" + \ No newline at end of file diff --git a/.github/workflows/testing_push_to_s3.yml b/.github/workflows/testing_push_to_s3.yml index 8320c2b..68010b2 100644 --- a/.github/workflows/testing_push_to_s3.yml +++ b/.github/workflows/testing_push_to_s3.yml @@ -6,7 +6,7 @@ name: testing Push to S3 on: push: branches: - - vue3-pinboard + - vue3-pinboard_x jobs: build: diff --git a/package-lock.json b/package-lock.json index a3852d6..8cb4156 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,9 +10,9 @@ "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.7.2", "@fortawesome/free-solid-svg-icons": "^6.7.2", - "@fortawesome/pro-regular-svg-icons": "^6.6.0", + "@fortawesome/pro-regular-svg-icons": "^6.7.2", "@phila/phila-ui-core": "^1.0.15", - "@phila/pinboard": "2.0.94", + "@phila/pinboard": "2.0.100", "unplugin-auto-import": "^0.18.3", "unplugin-vue-router": "^0.10.8" }, @@ -1024,17 +1024,17 @@ } }, "node_modules/@fortawesome/fontawesome-common-types": { - "version": "6.6.0", - "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-common-types/-/6.6.0/fontawesome-common-types-6.6.0.tgz", - "integrity": "sha512-xyX0X9mc0kyz9plIyryrRbl7ngsA9jz77mCZJsUkLl+ZKs0KWObgaEBoSgQiYWAsSmjz/yjl0F++Got0Mdp4Rw==", + "version": "6.7.2", + "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-common-types/-/6.7.2/fontawesome-common-types-6.7.2.tgz", + "integrity": "sha512-Zs+YeHUC5fkt7Mg1l6XTniei3k4bwG/yo3iFUtZWd/pMx9g3fdvkSK9E0FOC+++phXOka78uJcYb8JaFkW52Xg==", "engines": { "node": ">=6" } }, "node_modules/@fortawesome/fontawesome-pro": { - "version": "6.6.0", - "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-pro/-/6.6.0/fontawesome-pro-6.6.0.tgz", - "integrity": "sha512-I1Fp+yiUYrK0q0UMoO0o9ZEGa0CWhqr0UibM/gcrKl40uYUkVmSemQJPV8+uOJgo4dnOHnTOqIL0r6kcH2hZlQ==", + "version": "6.7.2", + "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-pro/-/6.7.2/fontawesome-pro-6.7.2.tgz", + "integrity": "sha512-5ZocZMRSZ0ECojDoRMJji6jHTq4ymc4LaaKrYCY55Lir2GxFRBrsm27r2sKQWjIkaVYZ3tbgjMeXb3aFbSo0Vw==", "engines": { "node": ">=6" } @@ -1050,14 +1050,6 @@ "node": ">=6" } }, - "node_modules/@fortawesome/fontawesome-svg-core/node_modules/@fortawesome/fontawesome-common-types": { - "version": "6.7.2", - "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-common-types/-/6.7.2/fontawesome-common-types-6.7.2.tgz", - "integrity": "sha512-Zs+YeHUC5fkt7Mg1l6XTniei3k4bwG/yo3iFUtZWd/pMx9g3fdvkSK9E0FOC+++phXOka78uJcYb8JaFkW52Xg==", - "engines": { - "node": ">=6" - } - }, "node_modules/@fortawesome/free-solid-svg-icons": { "version": "6.7.2", "resolved": "https://npm.fontawesome.com/@fortawesome/free-solid-svg-icons/-/6.7.2/free-solid-svg-icons-6.7.2.tgz", @@ -1069,20 +1061,12 @@ "node": ">=6" } }, - "node_modules/@fortawesome/free-solid-svg-icons/node_modules/@fortawesome/fontawesome-common-types": { - "version": "6.7.2", - "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-common-types/-/6.7.2/fontawesome-common-types-6.7.2.tgz", - "integrity": "sha512-Zs+YeHUC5fkt7Mg1l6XTniei3k4bwG/yo3iFUtZWd/pMx9g3fdvkSK9E0FOC+++phXOka78uJcYb8JaFkW52Xg==", - "engines": { - "node": ">=6" - } - }, "node_modules/@fortawesome/pro-regular-svg-icons": { - "version": "6.6.0", - "resolved": "https://npm.fontawesome.com/@fortawesome/pro-regular-svg-icons/-/6.6.0/pro-regular-svg-icons-6.6.0.tgz", - "integrity": "sha512-T6ifZKYhLrEOWD2sOdqyJBblSSg5WqhtlmcVWhWViKTt2ZDqw9WstW/lG2jQK9hv5S5tqJwruab6XUPQEZqs5A==", + "version": "6.7.2", + "resolved": "https://npm.fontawesome.com/@fortawesome/pro-regular-svg-icons/-/6.7.2/pro-regular-svg-icons-6.7.2.tgz", + "integrity": "sha512-cJolK4K/s56mHAqOyno24SmjviHqSqG9ZfckBKCpWjJlgDexi61EfET5wWbmmEot6/BqasFjw9S6tudFQUL/PQ==", "dependencies": { - "@fortawesome/fontawesome-common-types": "6.6.0" + "@fortawesome/fontawesome-common-types": "6.7.2" }, "engines": { "node": ">=6" @@ -1806,14 +1790,14 @@ } }, "node_modules/@phila/pinboard": { - "version": "2.0.94", - "resolved": "https://registry.npmjs.org/@phila/pinboard/-/pinboard-2.0.94.tgz", - "integrity": "sha512-PVDIpWoU70rRPd85eSzbtVHuv1U0onIH0ZTLvh7jBfOB28QbGBuTgRetsC5Ef/BwnaUjWdhiW4OdZ9dUtx4nNg==", + "version": "2.0.100", + "resolved": "https://registry.npmjs.org/@phila/pinboard/-/pinboard-2.0.100.tgz", + "integrity": "sha512-Erh6vJgk7nrCmPuHA77z4WrRHkAMG9Z1DqK4etE9jetiEO15oslGYzzDyTVLhbAjjBda/IhKkTmjHwD2o+vyFw==", "dependencies": { "@creativebulma/bulma-tooltip": "^1.2.0", - "@fortawesome/fontawesome-pro": "^6.6.0", - "@fortawesome/fontawesome-svg-core": "^6.6.0", - "@fortawesome/free-solid-svg-icons": "^6.6.0", + "@fortawesome/fontawesome-pro": "6.7.2", + "@fortawesome/fontawesome-svg-core": "6.7.2", + "@fortawesome/free-solid-svg-icons": "6.7.2", "@fortawesome/vue-fontawesome": "^3.0.6", "@phila/phila-ui-app-footer": "^0.0.14", "@phila/phila-ui-app-header": "^0.0.24", diff --git a/package.json b/package.json index b9b77ca..cfe21b6 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,9 @@ "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.7.2", "@fortawesome/free-solid-svg-icons": "^6.7.2", - "@fortawesome/pro-regular-svg-icons": "^6.6.0", + "@fortawesome/pro-regular-svg-icons": "^6.7.2", "@phila/phila-ui-core": "^1.0.15", - "@phila/pinboard": "2.0.94", + "@phila/pinboard": "2.0.100", "unplugin-auto-import": "^0.18.3", "unplugin-vue-router": "^0.10.8" },