Skip to content

Commit

Permalink
use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
gpeng committed Jan 26, 2024
1 parent 4259b0c commit d67cfd1
Show file tree
Hide file tree
Showing 3 changed files with 231 additions and 226 deletions.
28 changes: 14 additions & 14 deletions .github/actions/prepare-app-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ runs:
run: npm install yarn -g
shell: bash

- name: Yarn cache
if: ${{ inputs.skip-node == 'false' }}
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
shell: bash
# - name: Yarn cache
# if: ${{ inputs.skip-node == 'false' }}
# id: yarn-cache
# run: echo "::set-output name=dir::$(yarn cache dir)"
# shell: bash

- name: Set up yarn cache
if: ${{ inputs.skip-node == 'false' }}
uses: actions/[email protected]
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
# - name: Set up yarn cache
# if: ${{ inputs.skip-node == 'false' }}
# uses: actions/[email protected]
# with:
# path: ${{ steps.yarn-cache.outputs.dir }}
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-

- name: Install node.js dependencies
if: ${{ inputs.skip-node == 'false' }}
run: yarn install
run: yarn install --force
shell: bash
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
"private": "true",
"dependencies": {
"esbuild": "^0.19.12",
"dfe-autocomplete": "DFE-Digital/dfe-autocomplete#11738c0",
"govuk-frontend": "^5.0.0",
"sass": "^1.70.0"
"sass": "^1.70.0",
"dfe-autocomplete": "github:DFE-Digital/dfe-autocomplete#main",
"accessible-autocomplete": "^2.0.4"
},
"scripts": {
"build": "esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=assets",
Expand Down
Loading

0 comments on commit d67cfd1

Please sign in to comment.