Merge branch 'main' into update-to-node-20 #12
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-latest | |
name: Package Action code | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- 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 | |
run: | | |
git config --global user.name 'Action workflow' | |
git config --global user.email '[email protected]' | |
git add dist/* | |
git commit -m "dist created from ${{ github.ref }} for sha (${{ github.sha }})" | |
git push origin main | |
env: | |
GH_TOKEN: ${{ secrets.DIST_TOKEN }} |