chore(build): set up actions to automatically update dist/index.js

This commit is contained in:
Naoki Oketani
2022-12-11 15:37:12 +09:00
parent 01ce539397
commit 856d2a375a

27
.github/workflows/dist.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: "update dist/index.js"
on:
push:
branches:
- main
jobs:
pack:
runs-on: ubuntu-latest
steps:
- name: check out repository code
uses: actions/checkout@v3
- name: install dependencies
run: |
npm ci
- name: format TypeScript code
run: |
npm run format
- name: compile TypeScript code
run: |
npm run build
- name: compile TypeScript code into dist/index.js
run: |
npm run pack
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore(build): automated change"