Skip to content

Commit

Permalink
$mol_build: mam auto publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Dec 14, 2023
1 parent 32d765e commit e906d80
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 26 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/mam.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: mam

on:
workflow_dispatch:
push:
branches:
- master
paths:
- '.github/workflows/mam.yml'
- 'build/**'
pull_request:
schedule:
- cron: "0 7 * * *"

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: hyoo-ru/mam_build@master2
with:
package: mol
modules: build
- uses: JS-DevTools/npm-publish@v1
if: ${{ github.ref == 'refs/heads/master' }}
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
package: ./mol/build/-/package.json
2 changes: 0 additions & 2 deletions build/build.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1277,8 +1277,6 @@ namespace $ {

json.version = version.join( '.' )

json.dependencies = {}

for( let dep of this.nodeDeps({ path , exclude }) ) {
if( require('module').builtinModules.includes(dep) ) continue
json.dependencies[ dep ] = `*`
Expand Down
37 changes: 13 additions & 24 deletions build/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,16 @@
{
"name": "mam",
"version": "1.11.0",
"exports": {
"node": {
"import": "./node.mjs",
"default": "./node.js"
"name": "mam",
"version": "1.11.0",
"bin": {
"mam": "./bin/mam"
},
"types": "./web.d.ts",
"import": "./web.mjs",
"default": "./web.js"
},
"main": "./node.js",
"module": "./node.mjs",
"browser": "./web.js",
"types": "./web.d.ts",
"bin": {
"mam": "./bin/mam"
},
"dependencies": {
"@types/compression": "*",
"@types/express": "*",
"@types/node": "*",
"@types/serve-index": "*",
"@types/ws": "*"
}
"dependencies": {
"@types/node": "*",
"@types/express": "*",
"@types/compression": "*",
"@types/cors": "*",
"@types/body-parser": "*",
"@types/serve-index": "*",
"@types/ws": "*"
}
}

0 comments on commit e906d80

Please sign in to comment.