Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danpacho/github-action-test
Github action ๐ฆพ์ ์ฌ์ฉํด ์๋ํ ํ๋ ๋ฐฉ๋ฒ์ ์์๋ด
์๋ค!
https://github.com/danpacho/github-action-test
github-actions npm-ci
Last synced: 2 days ago
JSON representation
Github action ๐ฆพ์ ์ฌ์ฉํด ์๋ํ ํ๋ ๋ฐฉ๋ฒ์ ์์๋ด ์๋ค!
- Host: GitHub
- URL: https://github.com/danpacho/github-action-test
- Owner: danpacho
- Created: 2022-12-26T07:20:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-29T06:09:51.000Z (almost 2 years ago)
- Last Synced: 2024-11-13T01:38:02.010Z (2 days ago)
- Topics: github-actions, npm-ci
- Language: JavaScript
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Github `action`์ ํ์ตํด๋ด ๋๋ค.
## ํ์ฌ ๊ธฐ์ Stack?
1. `pnpm` ํจํค์ง ๋งค๋์
2. **branch merge**๋ก ํจํค์ง๋ฅผ ๊ด๋ฆฌํ๋ ์ํฉ## Workflows?
1. `codeql.yml`
- `"javascript"` ์ฝ๋ ํ๋ฆฌํฐ ๊ด๋ฆฌ
- `main` branch์ **pull request ๋๋ ์๊ฐ** ์คํ2. `release.yml`
- `main` branch์ commit๋๋ ์๊ฐ ์คํ
- pull request๊ฐ merge ๋๋ ์๊ฐ ์คํ (์ด๋ autolabeler๋ฅผ ์๋์ํค๊ธฐ ์ํจ)
- release ๋ณ๊ฒฝ ๋ด์ญ, branch์ title๊ณผ tag๋ฅผ ๊ธฐ์ค์ผ๋ก ์๋ ์์ฑ3. `publish.yml`
- github **release๋๋ ์๊ฐ** `ci` script ์คํ
- `ci` ์คํ ์ดํ npm์ ๋ฐฐํฌ4. `size-limit.yml`
- pull request์ ์ํด `main` branch์ merge๋๋ ์๊ฐ ์คํ
- ํจํค์ง์ gzip bundle size๋ฅผ ๋ณด๊ณ ํ ์ ํ๋ ๋น๊ต ๋ฐ ์ฌ์ด์ฆ ๋ณ๊ฒฝ์ ์ฒดํฌ## Workflows Helpers Packages
1. [`pnpm/action-setup@v2`](https://github.com/pnpm/action-setup)
- `pnpm`์ ํจํค์ง ๋งค๋์ ๋ก ์ฌ์ฉ
2. [`actions/cache@v3`](https://github.com/actions/cache)
- `node_modules` ์บ์ฑ ์ ๋ต ์ฌ์ฉ
- unique key๋ฅผ hashํ ํ ์กฐํ
- ์ด๊ฒ์ ์ํ๋ฉด? **์๊ฐ-๋น์ฉ ์ํด**3. [`JS-DevTools/npm-publish@v1`](https://github.com/JS-DevTools/npm-publish)
- `npm publish` ์๋ํ
- `NPM_TOKEN`์ ์ด์ฉํด `npm` ์๋ํ
```yml
uses: JS-DevTools/npm-publish@v1
name: Publish package
with:
token: ${{ secrets.NPM_TOKEN }}
```4. [`release-drafter/release-drafter@v5`](https://github.com/release-drafter/release-drafter)
- release ๋ด์ญ ์ ๋ฐ์ดํธ ์๋ํ
5. [`andresz1/size-limit-action@v1`](https://github.com/andresz1/size-limit-action)
- ํจํค์ง bundle size๋ฅผ ์ฒดํฌ ๋ฐ ๊ฒํ
## Action ์๋ ์์
1. branch๋ฅผ ํ์ ์ฝ๋ ์์
2. branch pull request ์์ฒญ
- `codeql.yml` ์ฝ๋ํ๋ฆฌํฐ action run
- `release.yml` release action run
- `size-limit.yml` size limit action run
3. branch merge
- `release.yml` release action run
4. release draft: release action์ผ๋ก ์์ฑ๋ release template๋ก version release
- `publish.yml` npm publish action run