Skip to content

Commit

Permalink
conf(github): replace circleci with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed May 24, 2024
1 parent f1c712b commit ad122ad
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 46 deletions.
41 changes: 0 additions & 41 deletions .circleci/config.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build
on: push

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: yarn

- name: Configure Git
run: git config --global --add url."https://${{ secrets.GH_TOKEN }}@github.com/".insteadOf "https://github.com/"

- name: Configure npmrc
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_TOKEN }}" >> .npmrc

- name: Install dependencies
run: yarn --frozen-lockfile --prefer-offline

- name: Lint commit message
run: yarn commitlint --from=HEAD~1

- name: Check ESLint
run: yarn lint

- name: Build package
run: yarn build

- name: Semantic Release
run: yarn semantic-release
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"author": "Michael Lefkowitz <lefkowitz.michael@gmail.com>",
"license": "MIT",
"scripts": {
"build": "./node_modules/.bin/babel src/index.js --out-dir build",
"build": "babel src/index.js --out-dir build",
"cm": "git-cz",
"cm:retry": "git-cz --retry",
"prettier:debug-check": "prettier --config ./.prettierrc.js --debug-check \"{src,test}/**/*.js\"",
"preprettier:all": "yarn run prettier:debug-check",
"preprettier:all": "yarn prettier:debug-check",
"prettier:all": "prettier --config ./.prettierrc.js --write \"{src,test}/**/*.js\"",
"generate:licenses": "license-checker --csv --customPath ./licenses/customFormat.json --out ./licenses/licenses.csv",
"lint": "echo \"---Running ESLint---\" && eslint \"src/**/*.{js,jsx}\"",
"lint:all": "yarn run eslint --ext .js ."
"lint": "eslint \"src/**/*.{js,jsx}\"",
"lint:all": "eslint --ext .js ."
},
"dependencies": {
"lodash": "^4.17.21"
Expand Down Expand Up @@ -42,7 +42,7 @@
"hooks": {
"pre-commit": "pretty-quick --staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-push": "echo \"---Running ESLint---\" && yarn lint"
"pre-push": "yarn lint"
}
},
"release": {
Expand Down

0 comments on commit ad122ad

Please sign in to comment.