Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 3 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
publish:
runs-on: codebuild-stellaraf-actions-public-${{ github.run_id }}-${{ github.run_attempt }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand All @@ -25,30 +25,13 @@ jobs:
run: |
echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
echo "node=$(node --version)" >> "$GITHUB_OUTPUT"
- name: Export temporary AWS cache credentials
shell: bash
run: |
python3 - <<'PYTHON'
import json, os, subprocess
credentials = json.loads(subprocess.check_output(['aws', 'configure', 'export-credentials', '--format', 'process']))
with open(os.environ['GITHUB_ENV'], 'a') as output:
for source, target in [('AccessKeyId', 'AWS_ACCESS_KEY_ID'), ('SecretAccessKey', 'AWS_SECRET_ACCESS_KEY'), ('SessionToken', 'AWS_SESSION_TOKEN')]:
value = credentials[source]
if not value or '\n' in value or '\r' in value:
raise RuntimeError('Invalid temporary credential value')
print('::add-mask::' + value)
output.write(target + '=' + value + '\n')
PYTHON
- name: Restore pnpm download store from S3
uses: tespkg/actions-cache@e07e2d4953dc8c020d447363e5064e36d04f3cf9
- name: Restore pnpm download store
uses: actions/cache@v4
with:
region: us-west-1
bucket: stellaraf-public-ci-961341522852-us-west-1
path: ${{ steps.ci-pnpm-cache.outputs.path }}
key:
cache/${{ github.repository }}/${{ github.ref }}/pnpm-8.15.9/${{ runner.os }}/${{ runner.arch }}/${{ steps.ci-pnpm-cache.outputs.node }}/${{
hashFiles('pnpm-lock.yaml') }}
use-fallback: false
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
Expand Down
23 changes: 3 additions & 20 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
quality:
name: Quality

runs-on: codebuild-stellaraf-actions-public-${{ github.run_id }}-${{ github.run_attempt }}
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
Expand All @@ -26,30 +26,13 @@ jobs:
run: |
echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
echo "node=$(node --version)" >> "$GITHUB_OUTPUT"
- name: Export temporary AWS cache credentials
shell: bash
run: |
python3 - <<'PYTHON'
import json, os, subprocess
credentials = json.loads(subprocess.check_output(['aws', 'configure', 'export-credentials', '--format', 'process']))
with open(os.environ['GITHUB_ENV'], 'a') as output:
for source, target in [('AccessKeyId', 'AWS_ACCESS_KEY_ID'), ('SecretAccessKey', 'AWS_SECRET_ACCESS_KEY'), ('SessionToken', 'AWS_SESSION_TOKEN')]:
value = credentials[source]
if not value or '\n' in value or '\r' in value:
raise RuntimeError('Invalid temporary credential value')
print('::add-mask::' + value)
output.write(target + '=' + value + '\n')
PYTHON
- name: Restore pnpm download store from S3
uses: tespkg/actions-cache@e07e2d4953dc8c020d447363e5064e36d04f3cf9
- name: Restore pnpm download store
uses: actions/cache@v4
with:
region: us-west-1
bucket: stellaraf-public-ci-961341522852-us-west-1
path: ${{ steps.ci-pnpm-cache.outputs.path }}
key:
cache/${{ github.repository }}/${{ github.ref }}/pnpm-8.15.9/${{ runner.os }}/${{ runner.arch }}/${{ steps.ci-pnpm-cache.outputs.node }}/${{
hashFiles('pnpm-lock.yaml') }}
use-fallback: false
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Formatting
Expand Down
Loading