Skip to content

bump version

bump version #357

Workflow file for this run

name: deploy-preview
on:
pull_request:
types:
- opened
- edited
- synchronize
jobs:
test:
uses: ./.github/workflows/test.yml
deploy-preview:
needs: [test]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: set node version
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci
- run: npm run build && npm run build:dist
- name: set destination directory
id: set_dest_dir
run: echo "DEST_DIR=inline/preview-$GITHUB_HEAD_REF" >> "$GITHUB_OUTPUT"
- name: deploy preview to s3
uses: jakejarvis/[email protected]
with:
args: --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
SOURCE_DIR: "./dist"
DEST_DIR: ${{ steps.set_dest_dir.outputs.DEST_DIR }}