Skip to content

Commit f2b8cc6

Browse files
committed
chore: update beta release structure
1 parent 82ff71c commit f2b8cc6

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/beta.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,33 @@ jobs:
88
runs-on: macos-latest
99
steps:
1010
- 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
1229
with:
1330
node-version: '20.x'
1431
registry-url: 'https://registry.npmjs.org'
1532
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) }}
1638
- run: npm ci
1739
- run: npm run build
1840
- run: npm publish --tag beta --access public
19-
env:
20-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)