File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 8
8
publish :
9
9
name : Publish to NPM & GitHub Package Registry
10
10
runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : read
13
+ id-token : write
14
+ packages : write
11
15
steps :
16
+ - id : get-secrets
17
+ uses : grafana/shared-workflows/actions/get-vault-secrets@28361cdb22223e5f1e34358c86c20908e7248760 # get-vault-secrets-v1.1.0
18
+ with :
19
+ repo_secrets : |
20
+ NPM_TOKEN=npm_token:npm_token
21
+
12
22
- name : Checkout repository
13
23
uses : actions/checkout@v4
14
24
with :
40
50
if : steps.version_check.outputs.changed == 'true'
41
51
run : npm publish --access public
42
52
env :
43
- NODE_AUTH_TOKEN : ${{ secrets .NPM_TOKEN }}
53
+ NODE_AUTH_TOKEN : ${{ env .NPM_TOKEN }}
44
54
45
55
- name : Setup .npmrc file for GitHub Packages
46
56
if : steps.version_check.outputs.changed == 'true'
You can’t perform that action at this time.
0 commit comments