Skip to content

add the gh actions setup file #16

add the gh actions setup file

add the gh actions setup file #16

name: facebook/metro/build-and-deploy
on:
push:
env:
node-version-min: 'v18.0.0'
node-version-lts: 'lts/*'
defaults:
run:
shell: bash
jobs:
build-and-test:
uses: ./.github/workflows/build-and-test.yml

Check failure on line 15 in .github/workflows/build-and-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-and-deploy.yml

Invalid workflow file

error parsing called workflow ".github/workflows/build-and-deploy.yml" -> "./.github/workflows/build-and-test.yml" (source branch with sha:5d4575d83f1d0965683965edc72a2b01c82d0f37) : workflow is not reusable as it is missing a `on.workflow_call` trigger
# publish-to-npm:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/[email protected]
# - uses: actions/setup-node@v4
# with:
# node-version: 18.12
# cache: yarn
# - name: Check Tag Format
# id: check_tag
# run: |
# if [[ $GITHUB_REF =~ ^refs/tags/v\d+(\.\d+){2}(-.*)?$ ]]; then
# echo "valid=true" >> $GITHUB_OUTPUT
# else
# echo "valid=false" >> $GITHUB_OUTPUT
# fi
# - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
# - name: Infer dist-tag and run npm run publish
# if: steps.check_tag.outputs.valid == 'true'
# run: "./.circleci/scripts/publish.sh"
# - run: rm ~/.npmrc