-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This pull request was automerged via backport-assistant
- Loading branch information
1 parent
ac93c35
commit bc3e460
Showing
9 changed files
with
55 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: setup-js | ||
description: install node and yarn, and run yarn install | ||
inputs: | ||
node-version: | ||
description: 'node version' | ||
# https://github.com/ember-cli/ember-cli/blob/master/docs/node-support.md | ||
# package.json has ember-cli at version ~3.28.5 currently | ||
default: '16' | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Install yarn | ||
run: |- | ||
# install yarn if not present | ||
yarn --version && exit | ||
# note: can't `npm install -g` on self-hosted runners | ||
npm install yarn --no-package-lock --no-save | ||
cd node_modules/.bin | ||
./yarn --version | ||
echo "$PWD" >> "$GITHUB_PATH" | ||
working-directory: /tmp | ||
shell: bash | ||
# enforce node version (self-hosted default is not necessarily what we want) | ||
# after yarn, so we can use yarn for cache. | ||
- name: Setup node | ||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
cache: yarn | ||
cache-dependency-path: ui/yarn.lock | ||
- name: Yarn install | ||
run: yarn install --frozen-lockfile | ||
working-directory: ui | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters