Skip to content

chore(doc): updated readme #56

chore(doc): updated readme

chore(doc): updated readme #56

Workflow file for this run

name: Filestack React deployment
on:
push:
branches: [ develop ]
create:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup repository env
uses: actions/setup-node@v4
with:
node-version: '22.22.3'
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: Determine npm dist-tag
if: startsWith(github.ref, 'refs/tags/') && success()
id: npm_tag
run: |
TAG_NAME="${GITHUB_REF#refs/tags/v}"
if [[ "$TAG_NAME" == *-* ]]; then
echo "dist_tag=beta" >> "$GITHUB_OUTPUT"
else
echo "dist_tag=latest" >> "$GITHUB_OUTPUT"
fi
- name: Publish to NPM (only on tag)
if: startsWith(github.ref, 'refs/tags/') && success()
run: npm publish --access public --tag ${{ steps.npm_tag.outputs.dist_tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: example/build