Skip to content

Merge pull request #10 from xpadev-net/dependabot/npm_and_yarn/ws-8.17.1 #92

Merge pull request #10 from xpadev-net/dependabot/npm_and_yarn/ws-8.17.1

Merge pull request #10 from xpadev-net/dependabot/npm_and_yarn/ws-8.17.1 #92

name: DevBuild
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
- name: init
run: |
npm i -g pnpm
pnpm install
- name: update .gitignore
run: sed -i -e '/\/dist/d' .gitignore
- name: generate dev build
run: pnpm build
- name: setup sandbox
run: |
cp ./dist/bundle.js ./docs/niwango.js
sed --in-place --expression='s/..\/dist\/bundle.js/.\/niwango.js/' docs/playground.html
- name: generate typedoc
run: pnpm typedoc
- name: update .gitignore
run: sed -i -e '/\/docs\/type/d' .gitignore
- name: Create new Branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.email "[email protected]"
git config user.name "github-actions"
git checkout -b dev-build
git add .
git commit -m "auto generate" -n
git push -f origin dev-build