File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 publish :
99 runs-on : ubuntu-latest
1010 steps :
11+ - name : Load secrets from OP
12+ id : op-load-secret
13+ uses : 1password/load-secrets-action@v2.0.0
14+ with :
15+ export-env : false
16+ env :
17+ OP_SERVICE_ACCOUNT_TOKEN : ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
18+ NPM_TOKEN : op://kv_gov-ui-kit_infra/NPM_TOKEN/credential
1119 - name : Setup
1220 uses : aragon/gov-ui-kit/.github/actions/setup@main
1321 with :
1826 run : yarn build
1927 - name : Publish library
2028 run : |
21- yarn config set npmAuthToken ${{ secrets .NPM_TOKEN }}
29+ yarn config set npmAuthToken ${{ steps.op-load-secret.outputs .NPM_TOKEN }}
2230 yarn npm publish --access public
2331 env :
24- NODE_AUTH_TOKEN : ${{ secrets .NPM_TOKEN }}
32+ NODE_AUTH_TOKEN : ${{ steps.op-load-secret.outputs .NPM_TOKEN }}
Original file line number Diff line number Diff line change 77 release :
88 runs-on : ubuntu-latest
99 steps :
10+ - name : Load secrets from OP
11+ id : op-load-secret
12+ uses : 1password/load-secrets-action@v2.0.0
13+ with :
14+ export-env : false
15+ env :
16+ OP_SERVICE_ACCOUNT_TOKEN : ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
17+ ARABOT_PAT_TRIGGER_WORKFLOW : op://kv_gov-ui-kit_infra/arabot-1_SIGN_CERTS/GITHUB_PAT
18+ NPM_TOKEN : op://kv_gov-ui-kit_infra/NPM_TOKEN/credential
1019 - name : Setup
1120 uses : aragon/gov-ui-kit/.github/actions/setup@main
1221 with :
1322 # Checkout full history to correclty check changeset status
1423 fetch-depth : 0
15- token : ${{ secrets .ARABOT_PAT_TRIGGER_WORKFLOW }}
24+ token : ${{ steps.op-load-secret.outputs .ARABOT_PAT_TRIGGER_WORKFLOW }}
1625 - name : Check changeset
1726 run : yarn changeset status --since origin/main
1827 - name : Build library
1928 run : yarn build
2029 - name : Update version
2130 run : yarn changeset version --snapshot
2231 env :
23- GITHUB_TOKEN : ${{ secrets .ARABOT_PAT_TRIGGER_WORKFLOW }}
32+ GITHUB_TOKEN : ${{ steps.op-load-secret.outputs .ARABOT_PAT_TRIGGER_WORKFLOW }}
2433 - name : Get package version
2534 id : package-version
2635 uses : martinbeentjes/npm-get-version-action@v1.3.1
2736 - name : Publish snapshot
2837 run : |
29- yarn config set npmAuthToken ${{ secrets .NPM_TOKEN }}
38+ yarn config set npmAuthToken ${{ steps.op-load-secret.outputs .NPM_TOKEN }}
3039 yarn npm publish --access public --tag ${{ steps.package-version.outputs.current-version }}
3140 env :
32- NODE_AUTH_TOKEN : ${{ secrets .NPM_TOKEN }}
41+ NODE_AUTH_TOKEN : ${{ steps.op-load-secret.outputs .NPM_TOKEN }}
3342 - name : Print snapshot version
3443 run : echo "Snapshot release - ${{ steps.package-version.outputs.current-version }}"
Original file line number Diff line number Diff line change 2222 permissions :
2323 pull-requests : write
2424 steps :
25+ - name : Load secrets from OP
26+ id : op-load-secret
27+ uses : 1password/load-secrets-action@v2.0.0
28+ with :
29+ export-env : false
30+ env :
31+ OP_SERVICE_ACCOUNT_TOKEN : ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
32+ ARABOT_PAT_TRIGGER_WORKFLOW : op://kv_gov-ui-kit_infra/arabot-1_SIGN_CERTS/GITHUB_PAT
2533 - name : Comment preview PR
2634 uses : thollander/actions-comment-pull-request@v3.0.1
2735 with :
2836 message : " 🚀 **Preview Deployment:** [View Here](${{ needs.deploy.outputs.deploymentUrl }})"
2937 comment-tag : preview-url
30- github-token : ${{ secrets.GITHUB_TOKEN }}
38+ github-token : ${{ steps.op-load-secret.outputs.ARABOT_PAT_TRIGGER_WORKFLOW }}
You can’t perform that action at this time.
0 commit comments