Skip to content

Commit 527848a

Browse files
feat: init project (#1)
1 parent 289400c commit 527848a

File tree

12 files changed

+3935
-0
lines changed

12 files changed

+3935
-0
lines changed

.github/workflows/branch.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: branch
2+
on:
3+
push:
4+
branches-ignore:
5+
- main
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- name: checkout code
12+
uses: actions/checkout@v3
13+
14+
- name: set up node
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 16
18+
cache: yarn
19+
20+
- name: get dependencies
21+
run: yarn
22+
23+
- name: build
24+
run: yarn build

.github/workflows/main.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: branch
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- name: checkout code
12+
uses: actions/checkout@v3
13+
14+
- name: configure git
15+
run: |
16+
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
17+
git config --global user.name "${{ github.actor }}"
18+
19+
- name: set up node
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 16
23+
cache: yarn
24+
25+
- name: semver
26+
id: semver
27+
# uses: ./
28+
uses: grumpy-programmer/actions-semver-release@v1 # TODO: remove this temporary usage of old actions-semver-release
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
with:
32+
init-version: 1.0.0
33+
34+
- name: get dependencies
35+
run: yarn
36+
37+
- name: build
38+
run: yarn build
39+
40+
- name: show changes
41+
run: git status
42+
43+
- name: commit and push change
44+
if: ${{ steps.semver.outputs.released == 'true' }}
45+
env:
46+
VERSION: ${{ steps.semver.outputs.version }}
47+
run: |
48+
git add dist
49+
git diff-index --quiet HEAD || git commit -m "Release ${VERSION}"
50+
git push
51+
52+
- name: update tag
53+
if: ${{ steps.semver.outputs.released == 'true' }}
54+
env:
55+
TAG: ${{ steps.semver.outputs.tag-prefix }}${{ steps.semver.outputs.version-major }}
56+
run: |
57+
git tag -f ${TAG}
58+
git push origin ${TAG} --force

.gitignore

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
2+
### Linux template
3+
*~
4+
5+
# temporary files which can be created if a process still has a handle open of a deleted file
6+
.fuse_hidden*
7+
8+
# KDE directory preferences
9+
.directory
10+
11+
# Linux trash folder which might appear on any partition or disk
12+
.Trash-*
13+
14+
# .nfs files are created when an open file is removed but is still being accessed
15+
.nfs*
16+
17+
### macOS template
18+
# General
19+
.DS_Store
20+
.AppleDouble
21+
.LSOverride
22+
23+
# Icon must end with two \r
24+
Icon
25+
26+
# Thumbnails
27+
._*
28+
29+
# Files that might appear in the root of a volume
30+
.DocumentRevisions-V100
31+
.fseventsd
32+
.Spotlight-V100
33+
.TemporaryItems
34+
.Trashes
35+
.VolumeIcon.icns
36+
.com.apple.timemachine.donotpresent
37+
38+
# Directories potentially created on remote AFP share
39+
.AppleDB
40+
.AppleDesktop
41+
Network Trash Folder
42+
Temporary Items
43+
.apdisk
44+
45+
### Windows template
46+
# Windows thumbnail cache files
47+
Thumbs.db
48+
Thumbs.db:encryptable
49+
ehthumbs.db
50+
ehthumbs_vista.db
51+
52+
# Dump file
53+
*.stackdump
54+
55+
# Folder config file
56+
[Dd]esktop.ini
57+
58+
# Recycle Bin used on file shares
59+
$RECYCLE.BIN/
60+
61+
# Windows Installer files
62+
*.cab
63+
*.msi
64+
*.msix
65+
*.msm
66+
*.msp
67+
68+
# Windows shortcuts
69+
*.lnk
70+
71+
### Node template
72+
# Logs
73+
logs
74+
*.log
75+
npm-debug.log*
76+
yarn-debug.log*
77+
yarn-error.log*
78+
lerna-debug.log*
79+
80+
# Diagnostic reports (https://nodejs.org/api/report.html)
81+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
82+
83+
# Runtime data
84+
pids
85+
*.pid
86+
*.seed
87+
*.pid.lock
88+
89+
# Directory for instrumented libs generated by jscoverage/JSCover
90+
lib-cov
91+
92+
# Coverage directory used by tools like istanbul
93+
coverage
94+
*.lcov
95+
96+
# nyc test coverage
97+
.nyc_output
98+
99+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
100+
.grunt
101+
102+
# Bower dependency directory (https://bower.io/)
103+
bower_components
104+
105+
# node-waf configuration
106+
.lock-wscript
107+
108+
# Compiled binary addons (https://nodejs.org/api/addons.html)
109+
build/Release
110+
111+
# Dependency directories
112+
node_modules/
113+
jspm_packages/
114+
115+
# TypeScript v1 declaration files
116+
typings/
117+
118+
# TypeScript cache
119+
*.tsbuildinfo
120+
121+
# Optional npm cache directory
122+
.npm
123+
124+
# Optional eslint cache
125+
.eslintcache
126+
127+
# Optional REPL history
128+
.node_repl_history
129+
130+
# Output of 'npm pack'
131+
*.tgz
132+
133+
# Yarn Integrity file
134+
.yarn-integrity
135+
136+
# dotenv environment variables file
137+
.env
138+
.env.test
139+
140+
# parcel-bundler cache (https://parceljs.org/)
141+
.cache
142+
143+
# next.js build output
144+
.next
145+
146+
# nuxt.js build output
147+
.nuxt
148+
149+
# vuepress build output
150+
.vuepress/dist
151+
152+
# Serverless directories
153+
.serverless/
154+
155+
# FuseBox cache
156+
.fusebox/
157+
158+
# DynamoDB Local files
159+
.dynamodb/
160+
161+
### Example user template template
162+
### Example user template
163+
164+
# IntelliJ project files
165+
.idea
166+
*.iml
167+
out
168+
gen
169+
170+
### Custom
171+
!dist/node_modules

0 commit comments

Comments
 (0)