Skip to content

Commit

Permalink
Merge pull request #1 from configcat/add-ci
Browse files Browse the repository at this point in the history
Add CI
  • Loading branch information
z4kn4fein authored May 9, 2022
2 parents fccfbf9 + cedf680 commit 995d2c3
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 15 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/react-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: REACT CI

on:
schedule:
- cron: '0 0 * * *'
push:
branches: [ main ]
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
pull_request:
branches: [ main ]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies
run: |
npm install
- name: Build
run: |
npm run build
- name: 📦Pack
run: npm pack

- uses: actions/upload-artifact@v2
with:
name: npm-package
path: configcat-react*.tgz

publish:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm install

- name: Build
run: |
npm run build
- name: 🚀Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_KEY }}
63 changes: 63 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

lib/
.idea/
dist/
.DS_Store
22 changes: 9 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "configcat-react",
"version": "0.0.1-alpha.1",
"version": "0.1.0",
"scripts": {
"build": "tsc",
"prepare": "npm run build"
Expand Down Expand Up @@ -35,6 +35,6 @@
"homepage": "https://configcat.com",
"license": "MIT",
"dependencies": {
"configcat-common": "^4.6.2"
"configcat-common": "^5.0.2"
}
}

0 comments on commit 995d2c3

Please sign in to comment.