Skip to content

Commit b6d4c97

Browse files
committed
ci(workflows): cache dependencies during deployment-info job
in `continuous-deployment` workflow
1 parent f3b1ac2 commit b6d4c97

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/continuous-deployment.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,32 @@ jobs:
2727
(startsWith(github.event.pull_request.head.ref, 'release/')
2828
&& github.event.pull_request.merged == true)
2929
runs-on: ubuntu-latest
30+
env:
31+
NPM_TOKEN_FLDV: ${{ secrets.NPM_TOKEN_FLDV }}
32+
PAT_GPR_FLDV: ${{ secrets.PAT_GPR_FLDV }}
3033
outputs:
3134
publish_args: ${{ steps.publish_args.outputs.args }}
3235
tag: ${{ steps.release.outputs.tag }}
3336
steps:
37+
- id: checkout
38+
name: Checkout branch
39+
uses: actions/checkout@v2
40+
with:
41+
ref: ${{ github.head_ref }}
42+
- id: setup-node
43+
name: Setup Node environment
44+
uses: actions/setup-node@v2
45+
with:
46+
always-auth: true
47+
cache: yarn
48+
node-version: 16
49+
registry-url: https://npm.pkg.github.com
50+
scope: '@${{ github.repository_owner }}'
51+
- id: cache
52+
name: Cache dependencies
53+
run: yarn --immutable
54+
env:
55+
NODE_AUTH_TOKEN: ${PAT_GPR_FLDV}
3456
- id: release
3557
name: Get release details
3658
uses: actions/github-script@v4
@@ -77,7 +99,7 @@ jobs:
7799
node-version: 16
78100
registry-url: 'https://npm.pkg.github.com'
79101
scope: '@${{ github.repository_owner }}'
80-
- id: dependencies
102+
- id: install
81103
name: Install dependencies
82104
run: yarn --immutable
83105
env:

0 commit comments

Comments
 (0)