-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reusable action for yarn setup + install.
Reduserer duplisering av kode i pipeline.
- Loading branch information
Showing
2 changed files
with
25 additions
and
10 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,23 @@ | ||
name: Setup + Install | ||
description: Run commands needed to setup yarn and install dependencies. | ||
inputs: | ||
npmAuthToken: | ||
description: Token that has packages:read permission for the navikt organization | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: ../setup-yarnrc | ||
with: | ||
npmAuthToken: ${{ inputs.npmAuthToken }} | ||
|
||
- name: Sette opp node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
cache: yarn | ||
|
||
- name: Installere dependencies | ||
shell: bash | ||
run: HUSKY=0 yarn install --immutable |
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