Skip to content

Commit

Permalink
Merge pull request #1 from nigelng/feat/update-pr-builder
Browse files Browse the repository at this point in the history
update pr builder workflow
  • Loading branch information
nigelng authored Jun 23, 2022
2 parents 098c6d0 + 68c8682 commit 71c47ba
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,6 @@ jobs:
run-test:
runs-on: ubuntu-latest
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.PROD_AWS_ACCESS_KEY_SECRET }}
aws-region: ap-southeast-2
- name: Get Package Token
run: |
CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token \
--region ap-southeast-2 \
--domain soltalabs \
--domain-owner 099113283044 \
--duration-seconds 900 \
--query authorizationToken --output text)
echo "::add-mask::$CODEARTIFACT_AUTH_TOKEN"
echo "CODEARTIFACT_AUTH_TOKEN=$CODEARTIFACT_AUTH_TOKEN" >> $GITHUB_ENV
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
cache: 'yarn'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
Expand All @@ -60,7 +38,7 @@ steps:
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Pkg
- name: Test Pkg
run: yarn test
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 71c47ba

Please sign in to comment.