File tree Expand file tree Collapse file tree 1 file changed +3
-23
lines changed Expand file tree Collapse file tree 1 file changed +3
-23
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
- - 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
11
+ - uses : actions/setup-node@v3
29
12
with :
30
13
node-version : ' 20.x'
31
14
registry-url : ' https://registry.npmjs.org'
32
15
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) }}
38
16
- run : npm ci
39
17
- run : npm run build
40
18
- 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