From 306b02d0ce7dbe6e8dbe321bb8a5a70e47f0e057 Mon Sep 17 00:00:00 2001 From: hyochan Date: Sun, 9 Oct 2022 00:09:52 +0900 Subject: [PATCH] ci: include workflows --- .github/workflows/ci-deploy.yml | 22 ++++++++++++++++++++++ .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/ci-deploy.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci-deploy.yml b/.github/workflows/ci-deploy.yml new file mode 100644 index 0000000..681719c --- /dev/null +++ b/.github/workflows/ci-deploy.yml @@ -0,0 +1,22 @@ + +name: publish-package + +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v2 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + scope: '@react-native-seoul' + - run: yarn + - run: yarn build + - run: yarn publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d72e8d7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install modules + run: yarn + + - name: Check linting + run: yarn lint + + - name: Build typescript & flow + run: yarn build