Update build-dist.yml workflow #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Action dist on push | |
on: | |
push: | |
jobs: | |
create-action-dist: | |
runs-on: ubuntu-20.04 | |
name: Package Action code | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '12' | |
- name: Install app dependencies | |
run: | | |
npm i | |
- name: Creating dist from ${{ github.ref }} for sha (${{ github.sha }}) | |
run: | | |
npm run-script build | |
- name: Add and commit Action dist | |
uses: EndBug/[email protected] | |
with: | |
author_name: Action workflow | |
author_email: [email protected] | |
message: "dist created from ${{ github.ref }} for sha (${{ github.sha }})" | |
env: | |
GITHUB_TOKEN: ${{ secrets.DIST_TOKEN }} |