fix(deps): update all application-kit packages to v22.19.0 (#200) #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy workflow | |
# The event triggers are configured as following: | |
# - on any pull request, trigger the workflow | |
# This is to avoid running the workflow twice on pull requests. | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2.2.4 | |
id: pnpm-install | |
with: | |
run_install: false | |
- name: Setup Node (uses version in .nvmrc) | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Building application | |
run: pnpm build | |
- name: Deploying to surge (staging) | |
run: pnpm run deploy | |
env: | |
APPLICATION_ID: ${{ secrets.APPLICATION_ID_STAGING }} | |
APPLICATION_URL: https://graphql-explorer-commercetools-staging.surge.sh | |
HOST_GCP_STAGING: ${{ secrets.HOST_GCP_STAGING }} | |
CTP_INITIAL_PROJECT_KEY: ${{ secrets.CYPRESS_PROJECT_KEY }} | |
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }} | |
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} | |
- name: Deploying to surge (production eu) | |
run: pnpm run deploy | |
env: | |
APPLICATION_ID: ${{ secrets.APPLICATION_ID_PRODUCTION_EU }} | |
APPLICATION_URL: https://graphql-explorer-commercetools-production-eu.surge.sh | |
HOST_GCP_STAGING: ${{ secrets.HOST_GCP_STAGING }} | |
CTP_INITIAL_PROJECT_KEY: ${{ secrets.CYPRESS_PROJECT_KEY }} | |
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }} | |
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} |