-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conf(github): replace circleci with github actions
- Loading branch information
1 parent
f1c712b
commit ad122ad
Showing
3 changed files
with
45 additions
and
46 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters