Skip to content

Commit

Permalink
ファイルを記録する用のページを作成しました (#6)
Browse files Browse the repository at this point in the history
* feature: record ページの作成

* feature: トップページの見た目を整えるなどしました

* feature: ci 用のファイルを作りました

* fix: パッケージのバージョンチェックは必要ないので消しました

* fix: ci に token を渡しました

* fix: npm ci 周りの修正
  • Loading branch information
kei01234kei authored Nov 23, 2023
1 parent 10c3044 commit 6806f79
Show file tree
Hide file tree
Showing 38 changed files with 925 additions and 915 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: ci

on: pull_request

jobs:
code-style-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# 参考: https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#use-private-packages
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://npm.pkg.github.com'
scope: '@recordex'
- name: Install dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run npm run fix
run: npm run fix
- name: Check for changes
run: |
git diff --exit-code || (echo "Code style error" && exit 1)
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ yarn-error.log*
next-env.d.ts

.vscode
.npmrc
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
npm run fix
6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

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

1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
transpilePackages: ['@recordex/smartcontract'],
};

module.exports = nextConfig;
Loading

0 comments on commit 6806f79

Please sign in to comment.