Skip to content

Commit

Permalink
uses caching in push to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrothwell committed Nov 29, 2023
1 parent 5be43a3 commit f40613c
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/dev_push_to_s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,31 @@ name: dev Push to S3
on:
push:
branches:
- main
- node-cache

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
- uses: actions/checkout@v3

- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '12.x'
node-version: '16.x'
cache: 'npm'

- name: install npm 6
run: |
npm install -g npm@6
- name: npm install, and build
run: |
printf "@fortawesome:registry=https://npm.fontawesome.com/\n//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}" >> ~/.npmrc
npm install
git config --global url."https://".insteadOf ssh://
npm ci
npm run build
env:
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FA_AUTH_TOKEN }}
Expand Down

0 comments on commit f40613c

Please sign in to comment.