File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change 8
8
runs-on : macos-latest
9
9
steps :
10
10
- uses : actions/checkout@v3
11
- - uses : actions/setup-node@v3
11
+ - name : Configure AWS Credentials
12
+ uses : aws-actions/configure-aws-credentials@v4
13
+ with :
14
+ role-to-assume : arn:aws:iam::935785792371:role/GithubNpmPublishAction
15
+ role-session-name : language-server-runtimes-github
16
+ aws-region : us-east-1
17
+ if : ${{ fromJson(steps.release.outputs.releases_created) }}
18
+
19
+ - name : Get npm access token
20
+ uses : aws-actions/aws-secretsmanager-get-secrets@v2
21
+ with :
22
+ secret-ids : |
23
+ npmjs/github_automation
24
+ parse-json-secrets : true
25
+ if : ${{ fromJson(steps.release.outputs.releases_created) }}
26
+
27
+ - name : Setup Nodejs
28
+ uses : actions/setup-node@v4
12
29
with :
13
30
node-version : ' 20.x'
14
31
registry-url : ' https://registry.npmjs.org'
15
32
scope : ' @aws'
33
+ if : ${{ fromJson(steps.release.outputs.releases_created) }}
34
+
35
+ - name : Set token
36
+ run : echo "NODE_AUTH_TOKEN=${{ env.NPMJS_GITHUB_AUTOMATION_TOKEN }}" >> $GITHUB_ENV
37
+ if : ${{ fromJson(steps.release.outputs.releases_created) }}
16
38
- run : npm ci
17
39
- run : npm run build
18
40
- run : npm publish --tag beta --access public
19
- env :
20
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments