-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: run ci/cd only for packages with changes
- Loading branch information
1 parent
54d0187
commit 7ec97be
Showing
2 changed files
with
59 additions
and
23 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,45 @@ | ||
name: Init repository | ||
description: Installs all the packages and initializes environment variables | ||
inputs: | ||
auth_token: | ||
description: NPM Registry _authToken | ||
type: string | ||
required: true | ||
node_version: | ||
description: Node versions to test | ||
type: string | ||
required: false | ||
default: "18.20.2" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Use Node.js ${{ inputs.node_version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ inputs.node_version }} | ||
cache: yarn | ||
|
||
- name: Set enterprise registry | ||
shell: bash | ||
run: | | ||
npm config set @vsf-enterprise:registry https://registrynpm.storefrontcloud.io | ||
npm config set //registrynpm.storefrontcloud.io/:_authToken ${{ inputs.auth_token }} | ||
- name: Load yarn cache | ||
uses: actions/cache@v4 | ||
with: | ||
key: yarn-cache | ||
path: .yarn | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: yarn install --frozen-lockfile --cache-folder .yarn | ||
|
||
- name: Cache turbo build setup | ||
uses: actions/cache@v4 | ||
with: | ||
path: .turbo | ||
key: ${{ runner.os }}-turbo-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-turbo- |
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