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"
|
run: "bun install"
|
||||||
|
|
||||||
- name: Bump version and publish
|
- name: Bump version and publish
|
||||||
uses: https://github.com/eshepelyuk/cocogitto-diya@v1
|
uses: https://github.com/cocogitto/cocogitto-action@v3.10
|
||||||
env:
|
env:
|
||||||
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_TOKEN_FORGEJO }}
|
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_TOKEN_FORGEJO }}
|
||||||
with:
|
with:
|
||||||
release: true
|
release: true
|
||||||
|
check-latest-tag-only: true
|
||||||
git-user: 'Cog Bot'
|
git-user: 'Cog Bot'
|
||||||
git-user-email: 'cog@alecodes.page'
|
git-user-email: 'cog@alecodes.page'
|
||||||
|
|
|
||||||
7
cog.toml
7
cog.toml
|
|
@ -8,16 +8,13 @@ branch_whitelist = []
|
||||||
skip_ci = "[skip ci]"
|
skip_ci = "[skip ci]"
|
||||||
skip_untracked = false
|
skip_untracked = false
|
||||||
pre_bump_hooks = []
|
pre_bump_hooks = []
|
||||||
post_bump_hooks = [
|
post_bump_hooks = ["git push", "git push origin {{version_tag}}"]
|
||||||
"git push",
|
|
||||||
"git push origin {{version_tag}}",
|
|
||||||
]
|
|
||||||
pre_package_bump_hooks = [
|
pre_package_bump_hooks = [
|
||||||
"echo 'bump package {{package}} to {{version}}'",
|
"echo 'bump package {{package}} to {{version}}'",
|
||||||
"sed -E -i 's/(\"version\":) \"[0-9.]{5}\"/\\1 \"{{version}}\"/gi' package.json",
|
"sed -E -i 's/(\"version\":) \"[0-9.]{5}\"/\\1 \"{{version}}\"/gi' package.json",
|
||||||
"bun run ci:publish",
|
"bun run ci:publish",
|
||||||
]
|
]
|
||||||
post_package_bump_hooks = []
|
post_package_bump_hooks = ["git push", "git push origin {{version_tag}}"]
|
||||||
|
|
||||||
[git_hooks]
|
[git_hooks]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@
|
||||||
"./mixins": "./src/_mixins.scss"
|
"./mixins": "./src/_mixins.scss"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "bun sass --style compressed src/style.scss dist/style.css",
|
"build": "bun sass --style compressed src/style.scss",
|
||||||
"ci:publish": "bun run build && bun publish --production --frozen-lockfile --silent"
|
"ci:publish": "bun run build dist/style.css && bun publish --production --frozen-lockfile --silent"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/bun": "latest",
|
"@types/bun": "latest",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue