Skip to content

Release 20241217 prodfix #396

Release 20241217 prodfix

Release 20241217 prodfix #396

name: Deploy Converter
on:
pull_request:
paths:
- .github/workflows/deploy-converter.yaml
- tools/actions/**
- tools/importer/**
- tools/importer/transformers/**
- paths.yaml
- converter.yaml
- package-lock.json
push:
paths:
- .github/workflows/deploy-converter.yaml
- tools/actions/**
- tools/importer/**
- tools/importer/transformers/**
- paths.yaml
- converter.yaml
- package-lock.json
branches:
- main
jobs:
# undeploy action in the "convert" package with the name of the current branch
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm ci
- run: npm run converter:build:prod
- run: npm run converter:deploy -- convert/${ACTION_NAME}
env:
ACTION_NAME: ${{ github.head_ref || github.ref_name }}
WSK_AUTH: ${{ secrets.WSK_AUTH }}
WSK_NAMESPACE: ${{ secrets.WSK_NAMESPACE }}