chore: bump tag in package-lock.json too #102
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- name: Install | |
run: | | |
# The default config is for the monorepo, while this is for standalone | |
npm install | |
- name: Build web-component | |
run: | | |
npx nx build web-component | |
# create the bundles required for studio-web | |
npx nx bundle web-component | |
- name: Test | |
run: | | |
npx nx test:once studio-web | |
- name: Build | |
run: | | |
npx nx build studio-web --configuration=production | |
npx nx build studio-web --configuration=production --localize=fr --deleteOutputPath=false | |
npx nx build studio-web --configuration=production --localize=es --deleteOutputPath=false | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: dist/packages/studio-web # The folder the action should deploy. | |
force: false # rebase instead of force push by default | |
clean-exclude: pr-preview/ # don't delete pr previews |