microbundle revert to microbundle-crl, filestackjs beta integrated fo… #34
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: Filestack React deployment | |
on: | |
push: | |
branches: [ develop ] | |
create: | |
tags: | |
- v* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup repository env | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '20.x' | |
registry-url: "https://registry.npmjs.org" | |
- name: Install deps | |
run: npm install | |
- name: Bundle packages | |
run: npm run build:prod | |
- name: Run tests | |
run: npm run test | |
- name: Build Docs | |
run: npm run docs:build | |
- name: Release packages | |
run: npx gulp publish | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: ${{ secrets.AWS_REGION }} | |
- name: Publush to NPM (only on tag) | |
if: startsWith(github.ref, 'refs/tags/') && success() | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Deploy docs | |
uses: crazy-max/ghaction-github-pages@v2 | |
with: | |
target_branch: gh-pages | |
build_dir: example/build | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |