Skip to content

Commit

Permalink
pushes cache to registry
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Aguilar committed May 8, 2023
1 parent 66cd00b commit 9d0577a
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,30 +38,30 @@ jobs:
-
name: Define SHORT_SHA with commit short sha
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
-
name: Setup Node14.x
uses: actions/setup-node@v3
with:
node-version: '14.x'
-
name: Install npm 8
run: npm i -g [email protected] --registry=https://registry.npmjs.org
-
name: npm Lockfile Version
uses: mansona/npm-lockfile-version@v1
with:
version: 2
-
name: Cache Dependencies
id: cache
uses: actions/cache@v3
with:
path: ./node_modules
key: modules-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
-
name: npm ci
run: npm ci
# -
# name: Setup Node14.x
# uses: actions/setup-node@v3
# with:
# node-version: '14.x'
# -
# name: Install npm 8
# run: npm i -g [email protected] --registry=https://registry.npmjs.org
# -
# name: npm Lockfile Version
# uses: mansona/npm-lockfile-version@v1
# with:
# version: 2
# -
# name: Cache Dependencies
# id: cache
# uses: actions/cache@v3
# with:
# path: ./node_modules
# key: modules-${{ hashFiles('package-lock.json') }}
# restore-keys: npm-
# -
# name: npm ci
# run: npm ci
# -
# name: Generate schemas and types
# run: npm run generate
Expand All @@ -88,19 +88,19 @@ jobs:
# -
# name: Run Client Other Unit Tests
# run: npm run test:client:other -- --ci --runInBand --reporters=default --reporters=jest-junit
-
name: Build
run: npm run build
-
name: Verify Bundle Size
run: ./node_modules/.bin/bundlesize --enable-github-checks
# -
# name: Build
# run: npm run build
# -
# name: Verify Bundle Size
# run: ./node_modules/.bin/bundlesize --enable-github-checks
# Build tag push the image after a merge to develop
-
name: Build, Tag, Push
uses: docker/build-push-action@v4
# if: github.ref == 'refs/heads/develop'
with:
# push: true
push: true
# tags: ${{ env.IMAGE_REPOSITORY }}:develop-latest
build-args: |
REVISION_HASH=${GITHUB_SHA}
Expand Down

0 comments on commit 9d0577a

Please sign in to comment.