Skip to content

Commit 6ac012c

Browse files
update typescript publish with new token (#134)
1 parent 6803768 commit 6ac012c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/typescript_package_publish.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,17 @@ jobs:
2525
run: |
2626
cd ./scripts
2727
yarn
28-
28+
29+
- name: Load secrets from 1Password
30+
uses: 1password/load-secrets-action@v2.0.0
31+
with:
32+
export-env: true # Export loaded secrets as environment variables
33+
env:
34+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
35+
NODE_AUTH_TOKEN: "op://TECHNOLOGIES/vwhmodynvelkwrqbpel45ncve4/credential"
36+
2937
- name: Publish to npm
3038
run: cd ./models/typescript && npm publish
3139
env:
32-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
33-
40+
NODE_AUTH_TOKEN: ${{ env.NODE_AUTH_TOKEN }}
41+

0 commit comments

Comments
 (0)