Skip to content

Commit

Permalink
Use github actions (#185)
Browse files Browse the repository at this point in the history
* Remove yarn, add github actions, remove circle ci

* Use only v18.x for node on github actions

* Remove dist folder

* Update package version
  • Loading branch information
tameemsafi authored Jun 1, 2023
1 parent b481c6d commit 152ecf9
Show file tree
Hide file tree
Showing 9 changed files with 6,669 additions and 4,385 deletions.
20 changes: 0 additions & 20 deletions .circleci/config.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/publish-npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish to NPM

on:
push:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'
- run: npm ci
- run: npm build:prod
- run: npm test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,6 @@ typings/

#IntelliJ/IDE
.idea/
*.iml
*.iml

dist/
1 change: 0 additions & 1 deletion dist/core.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/react.js

This file was deleted.

Loading

0 comments on commit 152ecf9

Please sign in to comment.