chore: update build script
All checks were successful
Publish package / build_and_publish (push) Successful in 29s
All checks were successful
Publish package / build_and_publish (push) Successful in 29s
This commit is contained in:
parent
f17fab7a04
commit
812e55e13a
3 changed files with 6 additions and 8 deletions
|
|
@ -35,10 +35,11 @@ jobs:
|
|||
run: "bun install"
|
||||
|
||||
- name: Bump version and publish
|
||||
uses: https://github.com/eshepelyuk/cocogitto-diya@v1
|
||||
uses: https://github.com/cocogitto/cocogitto-action@v3.10
|
||||
env:
|
||||
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_TOKEN_FORGEJO }}
|
||||
with:
|
||||
release: true
|
||||
check-latest-tag-only: true
|
||||
git-user: 'Cog Bot'
|
||||
git-user-email: 'cog@alecodes.page'
|
||||
|
|
|
|||
7
cog.toml
7
cog.toml
|
|
@ -8,16 +8,13 @@ branch_whitelist = []
|
|||
skip_ci = "[skip ci]"
|
||||
skip_untracked = false
|
||||
pre_bump_hooks = []
|
||||
post_bump_hooks = [
|
||||
"git push",
|
||||
"git push origin {{version_tag}}",
|
||||
]
|
||||
post_bump_hooks = ["git push", "git push origin {{version_tag}}"]
|
||||
pre_package_bump_hooks = [
|
||||
"echo 'bump package {{package}} to {{version}}'",
|
||||
"sed -E -i 's/(\"version\":) \"[0-9.]{5}\"/\\1 \"{{version}}\"/gi' package.json",
|
||||
"bun run ci:publish",
|
||||
]
|
||||
post_package_bump_hooks = []
|
||||
post_package_bump_hooks = ["git push", "git push origin {{version_tag}}"]
|
||||
|
||||
[git_hooks]
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
"./mixins": "./src/_mixins.scss"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "bun sass --style compressed src/style.scss dist/style.css",
|
||||
"ci:publish": "bun run build && bun publish --production --frozen-lockfile --silent"
|
||||
"build": "bun sass --style compressed src/style.scss",
|
||||
"ci:publish": "bun run build dist/style.css && bun publish --production --frozen-lockfile --silent"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue