kind: pipeline
type: docker
name: build-dist

steps:
  - name: build
    image: node:alpine
    commands: 
    - yarn install
    - yarn prettier&&yarn dist

  - name: git-push
    image: appleboy/drone-git-push
    settings:
      ssh_key: 
        from_secret: ssh_key
      remote: ssh://git@direct-git.186526.xyz:10022/186526/Sw2Express.git
      remote_name: git
      branch: master
      commit: true
      author_name: Drone CI
      author_email: drone@186526.xyz
      commit_message: "[Drone CI] Auto Format code && Build Dist"