Skip to content

Commit

Permalink
ci: update workflow to use new one (#26)
Browse files Browse the repository at this point in the history
* ci: update workflow to use new one

* ci: fix koishi missing

* fix lint
  • Loading branch information
MaikoTan authored Feb 17, 2024
1 parent 5ee0c77 commit 7bbbf40
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 43 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/auto-approve.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build

on:
push:
pull_request:

jobs:
build:
uses: AwesomeHamster/workflows/.github/workflows/build.yml@master
permissions:
pull-requests: write
issues: write
with:
lint: true
test: true
yarn-no-immutable: true
approve: true
secrets: inherit
18 changes: 11 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ on:

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: AwesomeHamster/actions-publish@master
with:
token: ${{ secrets.NPM_TOKEN }}
test: yarn test
uses: AwesomeHamster/workflows/.github/workflows/publish.yml@master
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
with:
yarn-no-immutable: true
test-before-publish: true
secrets:
npm-token: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
20 changes: 0 additions & 20 deletions .github/workflows/test.yml

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"eslint-import-resolver-typescript": "^3.6.1",
"fs-extra": "^11.2.0",
"js-yaml": "^4.1.0",
"koishi": "^4.11.0",
"mocha": "^10.2.0",
"prettier": "^3.1.0",
"rimraf": "^5.0.5",
Expand Down
3 changes: 1 addition & 2 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ export default defineConfig({
clean: true,
outDir: 'lib',
esbuildPlugins: [yaml.yamlPlugin()],
esbuildOptions(options, context) {
},
esbuildOptions(options, context) {},
})

0 comments on commit 7bbbf40

Please sign in to comment.